mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
Merge remote-tracking branch 'retspen/master'
This commit is contained in:
commit
5f24d5d222
9 changed files with 40 additions and 16 deletions
|
|
@ -8,9 +8,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(__file__))
|
|||
|
||||
SECRET_KEY = ''
|
||||
|
||||
DEBUG = True
|
||||
|
||||
TEMPLATE_DEBUG = DEBUG
|
||||
DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = ['*']
|
||||
|
||||
|
|
@ -45,7 +43,7 @@ MIDDLEWARE_CLASSES = (
|
|||
)
|
||||
|
||||
AUTHENTICATION_BACKENDS = (
|
||||
#'django.contrib.auth.backends.RemoteUserBackend',
|
||||
'django.contrib.auth.backends.ModelBackend',
|
||||
#'accounts.backends.MyRemoteUserBackend',
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
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…
Add table
Add a link
Reference in a new issue