Add distribution WSGI definition
This commit is contained in:
10
media.wsgi.dist
Normal file
10
media.wsgi.dist
Normal file
@@ -0,0 +1,10 @@
|
||||
import os
|
||||
import sys
|
||||
path = '/path/to/media'
|
||||
if path not in sys.path:
|
||||
sys.path.append(path)
|
||||
|
||||
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
|
||||
|
||||
import django.core.handlers.wsgi
|
||||
application = django.core.handlers.wsgi.WSGIHandler()
|
||||
Reference in New Issue
Block a user