Web: slight environment cleanup, wsgi app
This commit is contained in:
parent
c9046ff587
commit
55ad48c805
|
@ -0,0 +1,11 @@
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
path = '/home/bss/Programs/dr.botzo/botweb'
|
||||||
|
if path not in sys.path:
|
||||||
|
sys.path.append(path)
|
||||||
|
|
||||||
|
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
|
||||||
|
|
||||||
|
import django.core.handlers.wsgi
|
||||||
|
application = django.core.handlers.wsgi.WSGIHandler()
|
|
@ -81,7 +81,7 @@ MIDDLEWARE_CLASSES = (
|
||||||
'django.contrib.messages.middleware.MessageMiddleware',
|
'django.contrib.messages.middleware.MessageMiddleware',
|
||||||
)
|
)
|
||||||
|
|
||||||
ROOT_URLCONF = 'botweb.urls'
|
ROOT_URLCONF = 'urls'
|
||||||
|
|
||||||
TEMPLATE_BASE_LOC = os.path.normpath(
|
TEMPLATE_BASE_LOC = os.path.normpath(
|
||||||
os.path.join(os.path.abspath(os.path.dirname(__file__)),
|
os.path.join(os.path.abspath(os.path.dirname(__file__)),
|
||||||
|
|
Loading…
Reference in New Issue