dimanche 10 septembre 2017

how to use sites framework in live server django

I am a beginner in django and i used sites framework to make multiple instances of a website use the same code and database but the document says:

In order to serve different sites in production, you’d create a separate settings file with each SITE_ID (perhaps importing from a common settings file to avoid duplicating shared settings) and then specify the appropriate DJANGO_SETTINGS_MODULE for each site.

Is that means in my live server i must create a folder that have diffrenet settings files for each django_site? if yes, what should i name this settings files? thanks.

import os

os.environ["DJANGO_SETTINGS_MODULE"] = "agileengage.settings"

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()




Aucun commentaire:

Enregistrer un commentaire