Commit 87786cdb authored by Matt Pryor's avatar Matt Pryor
Browse files

Detect the correct template directory

parent fac7fed7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -8,3 +8,5 @@
_site/
.project
.vscode
.python-version
telepresence.log
 No newline at end of file
+3 −3
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@ import os

from django.utils.module_loading import module_dir
import esgf_slcs_server
BASE_DIR = module_dir(esgf_slcs_server)
SLCS_SERVER_BASE_DIR = module_dir(esgf_slcs_server)

INSTALLED_APPS = [
    'django.contrib.admin',
@@ -27,7 +27,7 @@ MIDDLEWARE = [

ROOT_URLCONF = 'esgf_slcs_server.urls'

TEMPLATES[0]['DIRS'].append(os.path.join(BASE_DIR, 'esgf_slcs_server', 'templates'))
TEMPLATES[0]['DIRS'].append(os.path.join(SLCS_SERVER_BASE_DIR, 'templates'))

WSGI_APPLICATION = 'esgf_slcs_server.wsgi.application'

@@ -39,7 +39,7 @@ AUTHENTICATION_BACKENDS = [
    'esgf_auth.backend.EsgfUserBackend'
]

STATICFILES_DIRS = [os.path.join(BASE_DIR, 'esgf_slcs_server', 'static')]
STATICFILES_DIRS = [os.path.join(SLCS_SERVER_BASE_DIR, 'static')]

LOGIN_URL = 'accounts_login'
LOGOUT_URL = 'accounts_logout'