Update template BASE_DIR now settings have moved in a directory
This commit is contained in:
parent
6b95646cc7
commit
1e494a4e11
1 changed files with 3 additions and 3 deletions
|
@ -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': {
|
||||||
|
|
Loading…
Reference in a new issue