Add django-debug-toolbar

This commit is contained in:
Joakim Hellsén 2024-03-17 03:01:18 +01:00
commit 0e750d1233
No known key found for this signature in database
GPG key ID: D196AE66FEBE1DC9
4 changed files with 70 additions and 4 deletions

View file

@ -2,7 +2,7 @@ from __future__ import annotations
from django.contrib.sitemaps import GenericSitemap
from django.contrib.sitemaps.views import sitemap
from django.urls import URLPattern, path
from django.urls import include, path
from django.views.decorators.cache import cache_page
from feedvault import views
@ -19,8 +19,9 @@ sitemaps = {
"domains": GenericSitemap({"queryset": Domain.objects.all(), "date_field": "created_at"}),
}
urlpatterns: list[URLPattern] = [
urlpatterns: list = [
path(route="", view=views.IndexView.as_view(), name="index"),
path("__debug__/", include("debug_toolbar.urls")),
path(route="feed/<int:feed_id>/", view=views.FeedView.as_view(), name="feed"),
path(route="feeds/", view=views.FeedsView.as_view(), name="feeds"),
path(route="add", view=views.AddView.as_view(), name="add"),