diff --git a/webvirtcloud/settings.py b/webvirtcloud/settings.py index 0c31433..866ff36 100644 --- a/webvirtcloud/settings.py +++ b/webvirtcloud/settings.py @@ -8,7 +8,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(__file__)) SECRET_KEY = '4y(f4rfqc6f2!i8_vfuu)kav6tdv5#sc=n%o451dm+th0&3uci' -DEBUG = True +DEBUG = True TEMPLATE_DEBUG = DEBUG @@ -44,10 +44,10 @@ MIDDLEWARE_CLASSES = ( 'django.middleware.clickjacking.XFrameOptionsMiddleware', ) -AUTHENTICATION_BACKENDS = ( - 'django.contrib.auth.backends.RemoteUserBackend', - #'accounts.backends.MyRemoteUserBackend', -) +#AUTHENTICATION_BACKENDS = ( +# 'django.contrib.auth.backends.RemoteUserBackend', +# #'accounts.backends.MyRemoteUserBackend', +#) LOGIN_URL = '/accounts/login' diff --git a/webvirtcloud/wsgi.py b/webvirtcloud/wsgi.py index a9bf44c..35ceb9b 100644 --- a/webvirtcloud/wsgi.py +++ b/webvirtcloud/wsgi.py @@ -7,10 +7,7 @@ For more information on this file, see https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/ """ -execfile('/srv/webvirtcloud/venv/bin/activate_this.py', dict(__file__='/srv/webvirtcloud/venv/bin/activate_this.py')) - -import os, sys -sys.path.append('/srv/webvirtcloud') +import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "webvirtcloud.settings") from django.core.wsgi import get_wsgi_application diff --git a/webvirtcloud/wsgi_custom.py b/webvirtcloud/wsgi_custom.py new file mode 100644 index 0000000..a9bf44c --- /dev/null +++ b/webvirtcloud/wsgi_custom.py @@ -0,0 +1,17 @@ +""" +WSGI config for webvirtcloud 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/1.7/howto/deployment/wsgi/ +""" + +execfile('/srv/webvirtcloud/venv/bin/activate_this.py', dict(__file__='/srv/webvirtcloud/venv/bin/activate_this.py')) + +import os, sys +sys.path.append('/srv/webvirtcloud') +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "webvirtcloud.settings") + +from django.core.wsgi import get_wsgi_application +application = get_wsgi_application()