Update template BASE_DIR now settings have moved in a directory

This commit is contained in:
Ben Sturmfels 2023-10-05 17:45:36 +11:00
parent 6b95646cc7
commit 1e494a4e11
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -101,13 +101,13 @@ INSTALLED_APPS = [
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField' DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
_conservancy_root_dir = Path(__file__).resolve().parent / 'conservancy' BASE_DIR = Path(__file__).resolve().parent.parent
TEMPLATES = [ TEMPLATES = [
{ {
'BACKEND': 'django.template.backends.django.DjangoTemplates', 'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [ 'DIRS': [
_conservancy_root_dir / 'templates', BASE_DIR / 'conservancy' / 'templates',
_conservancy_root_dir / 'static', BASE_DIR / 'conservancy' / 'static',
], ],
'APP_DIRS': True, 'APP_DIRS': True,
'OPTIONS': { 'OPTIONS': {