From c7bbedfa2786c704a139405e64ee921fa8e19382 Mon Sep 17 00:00:00 2001 From: Bruno Cesar Date: Tue, 19 Jan 2021 22:09:39 -0300 Subject: [PATCH] Move templates para nivel de apps --- apps/{receitas => }/templates/_base.html | 0 apps/{receitas => }/templates/index.html | 0 apps/{receitas => }/templates/partials/_footer.html | 0 apps/{receitas => }/templates/partials/_header.html | 0 apps/{receitas => }/templates/receita.html | 0 djangoreceitas/settings.py | 2 +- 6 files changed, 1 insertion(+), 1 deletion(-) rename apps/{receitas => }/templates/_base.html (100%) rename apps/{receitas => }/templates/index.html (100%) rename apps/{receitas => }/templates/partials/_footer.html (100%) rename apps/{receitas => }/templates/partials/_header.html (100%) rename apps/{receitas => }/templates/receita.html (100%) diff --git a/apps/receitas/templates/_base.html b/apps/templates/_base.html similarity index 100% rename from apps/receitas/templates/_base.html rename to apps/templates/_base.html diff --git a/apps/receitas/templates/index.html b/apps/templates/index.html similarity index 100% rename from apps/receitas/templates/index.html rename to apps/templates/index.html diff --git a/apps/receitas/templates/partials/_footer.html b/apps/templates/partials/_footer.html similarity index 100% rename from apps/receitas/templates/partials/_footer.html rename to apps/templates/partials/_footer.html diff --git a/apps/receitas/templates/partials/_header.html b/apps/templates/partials/_header.html similarity index 100% rename from apps/receitas/templates/partials/_header.html rename to apps/templates/partials/_header.html diff --git a/apps/receitas/templates/receita.html b/apps/templates/receita.html similarity index 100% rename from apps/receitas/templates/receita.html rename to apps/templates/receita.html diff --git a/djangoreceitas/settings.py b/djangoreceitas/settings.py index 16e9c95..e9a9a8e 100644 --- a/djangoreceitas/settings.py +++ b/djangoreceitas/settings.py @@ -58,7 +58,7 @@ TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [os.path.join(BASE_DIR, 'apps/receitas/templates')], + 'DIRS': [os.path.join(BASE_DIR, 'apps/templates')], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [