how to use django sites framework in live server

21 views
Skip to first unread message

Ahmed Mohamed

unread,
Sep 10, 2017, 11:08:27 AM9/10/17
to Django users

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 i must create a folder that have different 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()

Reply all
Reply to author
Forward
0 new messages