diff --git a/apps/receitas/views.py b/apps/receitas/views.py index 5b705d3..e1ab991 100644 --- a/apps/receitas/views.py +++ b/apps/receitas/views.py @@ -10,7 +10,7 @@ def index(request): receitas = receitas.order_by('-data_criacao') - return render(request, 'index.html', {'receitas': receitas}) + return render(request, 'receitas/index.html', {'receitas': receitas}) def receita(request, receita_id): - return render(request, 'receita.html', {'receita': get_object_or_404(Receita, pk=receita_id)}) + return render(request, 'receitas/receita.html', {'receita': get_object_or_404(Receita, pk=receita_id)}) diff --git a/apps/templates/index.html b/apps/templates/receitas/index.html similarity index 100% rename from apps/templates/index.html rename to apps/templates/receitas/index.html diff --git a/apps/templates/receita.html b/apps/templates/receitas/receita.html similarity index 100% rename from apps/templates/receita.html rename to apps/templates/receitas/receita.html