Add production settings file and point wsgi by default to it

This commit is contained in:
Roberto Rosario
2014-08-18 01:29:23 -04:00
parent 10a456c847
commit e80209117a
2 changed files with 7 additions and 1 deletions

View 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
~

View File

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