Imported os

parent e1d77dc2
...@@ -11,8 +11,8 @@ https://docs.djangoproject.com/en/4.1/ref/settings/ ...@@ -11,8 +11,8 @@ https://docs.djangoproject.com/en/4.1/ref/settings/
""" """
from pathlib import Path from pathlib import Path
from dotenv import load_dotenv from dotenv import load_dotenv
import os
load_dotenv() load_dotenv()
...@@ -61,7 +61,7 @@ ROOT_URLCONF = 'widget_CtrlF.urls' ...@@ -61,7 +61,7 @@ ROOT_URLCONF = 'widget_CtrlF.urls'
TEMPLATES = [ TEMPLATES = [
{ {
'BACKEND': 'django.template.backends.django.DjangoTemplates', 'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [], 'DIRS': [os.path.join(BASE_DIR, 'templates')],
'APP_DIRS': True, 'APP_DIRS': True,
'OPTIONS': { 'OPTIONS': {
'context_processors': [ 'context_processors': [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment