Skip to content

lukassup/multi_site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Django multi site setup

Initialize the database tables

$ DJANGO_SETTINGS_MODULE=multi_site.settings.site_a python manage.py migrate
$ DJANGO_SETTINGS_MODULE=multi_site.settings.site_b python manage.py migrate

Run the development server

$ DJANGO_SETTINGS_MODULE=multi_site.settings.site_a python manage.py runserver site-a.example.com:8000
$ DJANGO_SETTINGS_MODULE=multi_site.settings.site_b python manage.py runserver site-b.example.com:8000

Run the WSGI app

$ gunicorn multi_site.wsgi.site_b
$ gunicorn multi_site.wsgi.site_a

Releases

No releases published

Packages

No packages published

Languages