Implement Chzzk campaign management features, including models, views, and templates
Some checks failed
Deploy to Server / deploy (push) Failing after 9s
Some checks failed
Deploy to Server / deploy (push) Failing after 9s
This commit is contained in:
parent
677aedf42b
commit
9ce324fd2d
12 changed files with 594 additions and 164 deletions
49
chzzk/urls.py
Normal file
49
chzzk/urls.py
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
from typing import TYPE_CHECKING
|
||||
|
||||
from django.urls import path
|
||||
|
||||
from chzzk import views
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from django.urls.resolvers import URLPattern
|
||||
|
||||
app_name = "chzzk"
|
||||
|
||||
urlpatterns: list[URLPattern] = [
|
||||
# /chzzk/
|
||||
path(
|
||||
"",
|
||||
views.dashboard_view,
|
||||
name="dashboard",
|
||||
),
|
||||
# /chzzk/campaigns/
|
||||
path(
|
||||
"campaigns/",
|
||||
views.CampaignListView.as_view(),
|
||||
name="campaign_list",
|
||||
),
|
||||
# /chzzk/campaigns/<campaign_no>/
|
||||
path(
|
||||
"campaigns/<int:campaign_no>/",
|
||||
views.campaign_detail_view,
|
||||
name="campaign_detail",
|
||||
),
|
||||
# /chzzk/rss/campaigns
|
||||
path(
|
||||
"rss/campaigns",
|
||||
views.ChzzkCampaignFeed(),
|
||||
name="campaign_feed",
|
||||
),
|
||||
# /chzzk/atom/campaigns
|
||||
path(
|
||||
"atom/campaigns",
|
||||
views.ChzzkCampaignFeed(),
|
||||
name="campaign_feed_atom",
|
||||
),
|
||||
# /chzzk/discord/campaigns
|
||||
path(
|
||||
"discord/campaigns",
|
||||
views.ChzzkCampaignFeed(),
|
||||
name="campaign_feed_discord",
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue