Add wsgi.py.example

Example of wsgi configuration for multi-sites on Django
This commit is contained in:
Jesús 2018-10-12 19:44:10 -05:00
parent 50a78d7b4b
commit b72f6c7634
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View 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()