Commit 403b1c14 authored by Jan Enzo Salvador's avatar Jan Enzo Salvador

added the os.path.join(BASE_DIR, 'templates')

parent af4641b0
......@@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/4.1/ref/settings/
"""
from pathlib import Path
import os
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
......@@ -21,7 +22,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
from decouple import config
SECRET_KEY = config("SECRET_KEY")
SECRET_KEY = "django-insecure-z@+iegqn)^k4^=%rnr-$3*2+gy&7s1=%m$&%h!w_k%m*h+nl=&"
# SECURITY WARNING: don't run with debug turned on in production!
......@@ -61,7 +62,7 @@ ROOT_URLCONF = "widget_aguandhischipmunks.urls"
TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": [],
"DIRS": [os.path.join(BASE_DIR, 'templates')],
"APP_DIRS": True,
"OPTIONS": {
"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