From c9d1496e00de4b27eafe8a53580c57a2f26eb548 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Sat, 22 Apr 2023 12:20:03 +0200 Subject: [PATCH] Implemented frontend for search --- nummi/nummi/settings.py | 1 + .../templates/main => search/templates/search}/search.html | 0 nummi/search/views.py | 2 +- 3 files changed, 2 insertions(+), 1 deletion(-) rename nummi/{main/templates/main => search/templates/search}/search.html (100%) diff --git a/nummi/nummi/settings.py b/nummi/nummi/settings.py index a2cc1e9..28af502 100644 --- a/nummi/nummi/settings.py +++ b/nummi/nummi/settings.py @@ -50,6 +50,7 @@ INSTALLED_APPS = [ "category", "statement", "transaction", + "search", "django.contrib.admin", "django.contrib.auth", "django.contrib.contenttypes", diff --git a/nummi/main/templates/main/search.html b/nummi/search/templates/search/search.html similarity index 100% rename from nummi/main/templates/main/search.html rename to nummi/search/templates/search/search.html diff --git a/nummi/search/views.py b/nummi/search/views.py index c41965c..6a0dd10 100644 --- a/nummi/search/views.py +++ b/nummi/search/views.py @@ -14,7 +14,7 @@ from .forms import SearchForm class SearchFormView(LoginRequiredMixin, FormView): - template_name = "main/search.html" + template_name = "search/search.html" form_class = SearchForm def form_valid(self, form):