From 7a8d05c58a5391923179724c049ef8d61cf58de1 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Mon, 2 Nov 2020 11:06:03 +0100 Subject: [PATCH] Move templates in app directory --- corres2math/settings.py | 2 +- {templates => corres2math/templates}/400.html | 0 {templates => corres2math/templates}/403.html | 0 {templates => corres2math/templates}/404.html | 0 {templates => corres2math/templates}/500.html | 0 {templates => corres2math/templates}/amount_input.html | 0 {templates => corres2math/templates}/autocomplete_model.html | 0 {templates => corres2math/templates}/base.html | 0 {templates => corres2math/templates}/base_modal.html | 0 {templates => corres2math/templates}/index.html | 0 .../templates}/registration/logged_out.html | 0 {templates => corres2math/templates}/registration/login.html | 0 {templates => corres2math/templates}/search/search.html | 0 13 files changed, 1 insertion(+), 1 deletion(-) rename {templates => corres2math/templates}/400.html (100%) rename {templates => corres2math/templates}/403.html (100%) rename {templates => corres2math/templates}/404.html (100%) rename {templates => corres2math/templates}/500.html (100%) rename {templates => corres2math/templates}/amount_input.html (100%) rename {templates => corres2math/templates}/autocomplete_model.html (100%) rename {templates => corres2math/templates}/base.html (100%) rename {templates => corres2math/templates}/base_modal.html (100%) rename {templates => corres2math/templates}/index.html (100%) rename {templates => corres2math/templates}/registration/logged_out.html (100%) rename {templates => corres2math/templates}/registration/login.html (100%) rename {templates => corres2math/templates}/search/search.html (100%) diff --git a/corres2math/settings.py b/corres2math/settings.py index 79564cc..1424f6f 100644 --- a/corres2math/settings.py +++ b/corres2math/settings.py @@ -89,7 +89,7 @@ LOGIN_REDIRECT_URL = "index" TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [os.path.join(BASE_DIR, 'templates')] + 'DIRS': [os.path.join(BASE_DIR, 'corres2math/templates')] , 'APP_DIRS': True, 'OPTIONS': { diff --git a/templates/400.html b/corres2math/templates/400.html similarity index 100% rename from templates/400.html rename to corres2math/templates/400.html diff --git a/templates/403.html b/corres2math/templates/403.html similarity index 100% rename from templates/403.html rename to corres2math/templates/403.html diff --git a/templates/404.html b/corres2math/templates/404.html similarity index 100% rename from templates/404.html rename to corres2math/templates/404.html diff --git a/templates/500.html b/corres2math/templates/500.html similarity index 100% rename from templates/500.html rename to corres2math/templates/500.html diff --git a/templates/amount_input.html b/corres2math/templates/amount_input.html similarity index 100% rename from templates/amount_input.html rename to corres2math/templates/amount_input.html diff --git a/templates/autocomplete_model.html b/corres2math/templates/autocomplete_model.html similarity index 100% rename from templates/autocomplete_model.html rename to corres2math/templates/autocomplete_model.html diff --git a/templates/base.html b/corres2math/templates/base.html similarity index 100% rename from templates/base.html rename to corres2math/templates/base.html diff --git a/templates/base_modal.html b/corres2math/templates/base_modal.html similarity index 100% rename from templates/base_modal.html rename to corres2math/templates/base_modal.html diff --git a/templates/index.html b/corres2math/templates/index.html similarity index 100% rename from templates/index.html rename to corres2math/templates/index.html diff --git a/templates/registration/logged_out.html b/corres2math/templates/registration/logged_out.html similarity index 100% rename from templates/registration/logged_out.html rename to corres2math/templates/registration/logged_out.html diff --git a/templates/registration/login.html b/corres2math/templates/registration/login.html similarity index 100% rename from templates/registration/login.html rename to corres2math/templates/registration/login.html diff --git a/templates/search/search.html b/corres2math/templates/search/search.html similarity index 100% rename from templates/search/search.html rename to corres2math/templates/search/search.html