Add production settings file and point wsgi by default to it
This commit is contained in:
6
mayan/settings/production.py
Normal file
6
mayan/settings/production.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from __future__ import absolute_import
|
||||
from .local import *
|
||||
|
||||
DEBUG = False
|
||||
ALLOWED_HOSTS = ['*'] # Update this accordingly; https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
|
||||
~
|
||||
@@ -8,7 +8,7 @@ https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
|
||||
"""
|
||||
|
||||
import os
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mayan.settings.local")
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mayan.settings.production")
|
||||
|
||||
from django.core.wsgi import get_wsgi_application
|
||||
application = get_wsgi_application()
|
||||
|
||||
Reference in New Issue
Block a user