diff --git a/app/urls.py b/app/urls.py index dcf1237..75e70e2 100644 --- a/app/urls.py +++ b/app/urls.py @@ -20,7 +20,7 @@ from django.contrib.auth.views import LogoutView from django.urls import include, path from two_factor.urls import urlpatterns as tf_urls -from core.views import base, demo, drugs, notifications +from core.views import base, demo, drugs, notifications, search urlpatterns = [ path("__debug__/", include("debug_toolbar.urls")), @@ -66,4 +66,6 @@ urlpatterns = [ drugs.DrugPullMerge.as_view(), name="drug_pull_merge", ), + # Drug search + path("search//", search.Search.as_view(), name="search"), ] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) diff --git a/core/templates/base.html b/core/templates/base.html index c8319d2..e843a29 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -218,6 +218,9 @@ {% endif %} {% if user.is_authenticated %} + + Search +