Add wsgi.py.example
Example of wsgi configuration for multi-sites on Django
This commit is contained in:
parent
50a78d7b4b
commit
b72f6c7634
19
personalsite/wsgi.py.example
Normal file
19
personalsite/wsgi.py.example
Normal file
@ -0,0 +1,19 @@
|
||||
"""
|
||||
WSGI config for personalsite project.
|
||||
|
||||
It exposes the WSGI callable as a module-level variable named ``application``.
|
||||
|
||||
For more information on this file, see
|
||||
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
|
||||
"""
|
||||
|
||||
import os, sys
|
||||
|
||||
from django.core.wsgi import get_wsgi_application
|
||||
|
||||
sys.path.append('/path/to/site/personalsite')
|
||||
sys.path.append('/path/to/site')
|
||||
|
||||
os.environ['DJANGO_SETTINGS_MODULE'] = 'personalsite.settings'
|
||||
|
||||
application = get_wsgi_application()
|
Loading…
x
Reference in New Issue
Block a user