From b72f6c763450cd969a6dc0c9a169768010989483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Fri, 12 Oct 2018 19:44:10 -0500 Subject: [PATCH] Add wsgi.py.example Example of wsgi configuration for multi-sites on Django --- personalsite/wsgi.py.example | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 personalsite/wsgi.py.example diff --git a/personalsite/wsgi.py.example b/personalsite/wsgi.py.example new file mode 100644 index 0000000..f6a79ec --- /dev/null +++ b/personalsite/wsgi.py.example @@ -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()