diff --git a/main/settings.py b/main/settings.py index b2af8dd..8cdc77d 100644 --- a/main/settings.py +++ b/main/settings.py @@ -57,7 +57,7 @@ TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': ['templates'], + 'DIRS': [os.path.join(BASE_DIR, "templates")], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ @@ -124,6 +124,10 @@ # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/3.0/howto/static-files/ PROJECT_ROOT = os.path.join(os.path.abspath(__file__)) +TEMPLATE_DIRS = ( + os.path.join(PROJECT_DIR, "templates"), + # here you can add another templates directory if you wish. +) STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles") # Extra lookup directories for collectstatic to find static files @@ -135,4 +139,4 @@ STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' prod_db = dj_database_url.config(conn_max_age=500) -DATABASES['default'].update(prod_db) \ No newline at end of file +DATABASES['default'].update(prod_db)