00af109e2f
* add flake8 to pre-commit config, and fixup many things to make flake8 happy * add isort and sort all imports, add to pre-commit and requirements
14 lines
395 B
Python
14 lines
395 B
Python
from django.urls import path
|
|
|
|
from . import views
|
|
|
|
app_name = "news"
|
|
urlpatterns = [
|
|
path("", views.NewsIndex.as_view(), kwargs={"archived": False}, name="index"),
|
|
path(
|
|
"archive/", views.NewsIndex.as_view(), kwargs={"archived": True}, name="archive"
|
|
),
|
|
path("feed/", views.NewsFeed(), name="feed"),
|
|
path("<slug:slug>/", views.NewsDetail.as_view(), name="detail"),
|
|
]
|