From 7b6613bd36e12adbc53480df235afb1e39e99223 Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Mon, 24 Jul 2023 14:58:15 +0200 Subject: [PATCH] Fix url template --- .gitignore | 3 ++- core/settings.py | 4 ++-- env.example | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 854f719..cf0449c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ .idea/* static/admin/ static/django_extensions/ -static/rest_framework/ \ No newline at end of file +static/rest_framework/ +/static/ diff --git a/core/settings.py b/core/settings.py index ccf04a2..766cd3e 100644 --- a/core/settings.py +++ b/core/settings.py @@ -57,8 +57,8 @@ ROOT_URLCONF = "core.urls" TEMPLATES = [ { "BACKEND": "django.template.backends.django.DjangoTemplates", - "DIRS": [os.path.join(BASE_DIR, "app", "templates")], - "APP_DIRS": True, + "DIRS": [os.path.join(BASE_DIR, "templates")], + "APP_DIRS": False, "OPTIONS": { "context_processors": [ "django.template.context_processors.debug", diff --git a/env.example b/env.example index c56c50f..61af411 100644 --- a/env.example +++ b/env.example @@ -5,7 +5,7 @@ DEBUG=True SECRET_KEY=mysecret DOMAIN=project.localhost DOMAIN_URL=http://project.localhost -ALLOWED_HOSTS=project.localhost,localhost +ALLOWED_HOSTS=localhost,django,caddy,django.localhost,project.localhost STATIC_ROOT=static STATIC_URL=/static/ MEDIA_ROOT=media