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'
|
||||
|
||||
_conservancy_root_dir = Path(__file__).resolve().parent / 'conservancy'
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
TEMPLATES = [
|
||||
{
|
||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||
'DIRS': [
|
||||
_conservancy_root_dir / 'templates',
|
||||
_conservancy_root_dir / 'static',
|
||||
BASE_DIR / 'conservancy' / 'templates',
|
||||
BASE_DIR / 'conservancy' / 'static',
|
||||
],
|
||||
'APP_DIRS': True,
|
||||
'OPTIONS': {
|
||||
|
|
Loading…
Reference in a new issue