mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 23:02:19 +00:00
Example files for uWSGI deployment, moved WSGI file to "application"
This commit is contained in:
7
application.py
Normal file
7
application.py
Normal file
@@ -0,0 +1,7 @@
|
||||
import sys
|
||||
import os
|
||||
import django.core.handlers.wsgi
|
||||
|
||||
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "app")))
|
||||
os.environ['DJANGO_SETTINGS_MODULE'] = 'app.settings'
|
||||
application = django.core.handlers.wsgi.WSGIHandler()
|
||||
Reference in New Issue
Block a user