2022-08-17 16:42:06 +02:00
|
|
|
from django.contrib.sitemaps.views import sitemap
|
2021-07-10 11:18:24 +02:00
|
|
|
from django.urls import path
|
2022-08-17 16:42:06 +02:00
|
|
|
from .sitemaps import CategorySitemap, CTFSitemap
|
2021-07-10 11:18:24 +02:00
|
|
|
from . import views
|
|
|
|
|
2022-08-17 16:42:06 +02:00
|
|
|
sitemaps = {
|
|
|
|
'categories': CategorySitemap(),
|
|
|
|
'challenges': CTFSitemap(),
|
|
|
|
}
|
|
|
|
|
2021-07-10 11:18:24 +02:00
|
|
|
urlpatterns = [
|
|
|
|
path('<str:cat_slug>/', views.category, name='category'),
|
2022-08-17 16:42:06 +02:00
|
|
|
path('<str:cat_slug>/<str:ctf_slug>', views.ctf, name='ctf'),
|
|
|
|
path('sitemap.xml', sitemap, {'sitemaps': sitemaps}, name='django.contrib.sitemaps.views.sitemap'),
|
2021-07-10 11:18:24 +02:00
|
|
|
]
|