Fix url template

This commit is contained in:
Andros Fenollosa 2023-07-24 14:58:15 +02:00
parent 55c17554f1
commit 7b6613bd36
3 changed files with 5 additions and 4 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@
static/admin/ static/admin/
static/django_extensions/ static/django_extensions/
static/rest_framework/ static/rest_framework/
/static/

View File

@ -57,8 +57,8 @@ ROOT_URLCONF = "core.urls"
TEMPLATES = [ TEMPLATES = [
{ {
"BACKEND": "django.template.backends.django.DjangoTemplates", "BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": [os.path.join(BASE_DIR, "app", "templates")], "DIRS": [os.path.join(BASE_DIR, "templates")],
"APP_DIRS": True, "APP_DIRS": False,
"OPTIONS": { "OPTIONS": {
"context_processors": [ "context_processors": [
"django.template.context_processors.debug", "django.template.context_processors.debug",

View File

@ -5,7 +5,7 @@ DEBUG=True
SECRET_KEY=mysecret SECRET_KEY=mysecret
DOMAIN=project.localhost DOMAIN=project.localhost
DOMAIN_URL=http://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_ROOT=static
STATIC_URL=/static/ STATIC_URL=/static/
MEDIA_ROOT=media MEDIA_ROOT=media