Skip to content

Commit

Permalink
Move catalogue into search
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Aug 27, 2024
1 parent d9020a9 commit 4d73fbe
Show file tree
Hide file tree
Showing 13 changed files with 8 additions and 36 deletions.
Empty file removed app/catalogue/__init__.py
Empty file.
3 changes: 0 additions & 3 deletions app/catalogue/admin.py

This file was deleted.

7 changes: 0 additions & 7 deletions app/catalogue/apps.py

This file was deleted.

Empty file.
3 changes: 0 additions & 3 deletions app/catalogue/models.py

This file was deleted.

3 changes: 0 additions & 3 deletions app/catalogue/tests.py

This file was deleted.

7 changes: 0 additions & 7 deletions app/catalogue/urls.py

This file was deleted.

8 changes: 0 additions & 8 deletions app/catalogue/views.py

This file was deleted.

1 change: 1 addition & 0 deletions app/search/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@

urlpatterns = [
path("", views.index, name="index"),
path("catalogue/", views.catalogue_index, name="catalogue"),
]
6 changes: 6 additions & 0 deletions app/search/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@ def index(request):
template = loader.get_template("search/index.html")
context = {"foo": "bar"}
return HttpResponse(template.render(context, request))


def catalogue_index(request):
template = loader.get_template("search/catalogue/index.html")
context = {"foo": "bar"}
return HttpResponse(template.render(context, request))
File renamed without changes.
2 changes: 1 addition & 1 deletion config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/5.0/howto/static-files/

STATIC_URL = "static/"
STATIC_URL = "search/static/"
STATIC_ROOT = os.path.join(BASE_DIR, "static")
STATICFILES_DIRS = [os.path.join(BASE_DIR, "app/static")]
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
Expand Down
4 changes: 0 additions & 4 deletions config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,5 @@
path("", include(("app.main.urls", "main"), namespace="main")),
path("healthcheck/", include("app.healthcheck.urls")),
path("search/", include(("app.search.urls", "search"), namespace="search")),
path(
"catalogue/",
include(("app.catalogue.urls", "catalogue"), namespace="catalogue"),
),
path("admin/", admin.site.urls),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

0 comments on commit 4d73fbe

Please sign in to comment.