mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-24 23:25:24 +00:00
Little fix #133
This commit is contained in:
parent
531ea1e652
commit
d94ca38e5c
3 changed files with 23 additions and 9 deletions
|
@ -44,10 +44,10 @@ MIDDLEWARE_CLASSES = (
|
||||||
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
||||||
)
|
)
|
||||||
|
|
||||||
AUTHENTICATION_BACKENDS = (
|
#AUTHENTICATION_BACKENDS = (
|
||||||
'django.contrib.auth.backends.RemoteUserBackend',
|
# 'django.contrib.auth.backends.RemoteUserBackend',
|
||||||
#'accounts.backends.MyRemoteUserBackend',
|
# #'accounts.backends.MyRemoteUserBackend',
|
||||||
)
|
#)
|
||||||
|
|
||||||
LOGIN_URL = '/accounts/login'
|
LOGIN_URL = '/accounts/login'
|
||||||
|
|
||||||
|
|
|
@ -7,10 +7,7 @@ For more information on this file, see
|
||||||
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
|
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
|
||||||
|
|
||||||
import os, sys
|
|
||||||
sys.path.append('/srv/webvirtcloud')
|
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "webvirtcloud.settings")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "webvirtcloud.settings")
|
||||||
|
|
||||||
from django.core.wsgi import get_wsgi_application
|
from django.core.wsgi import get_wsgi_application
|
||||||
|
|
17
webvirtcloud/wsgi_custom.py
Normal file
17
webvirtcloud/wsgi_custom.py
Normal file
|
@ -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()
|
Loading…
Reference in a new issue