2021-08-30 02:29:20 +02:00
|
|
|
from django.urls import path
|
2021-10-09 14:27:20 +02:00
|
|
|
from django.views.generic.base import RedirectView
|
2021-08-30 02:29:20 +02:00
|
|
|
|
2021-10-09 14:27:20 +02:00
|
|
|
from .views import SignUpView, SubmitStudentsView, UpdateAccountView, AboutContestView, NewsView, ScoresView, RulesView, TestsView, ContactView, RobotsView, SitemapView
|
2021-08-30 02:29:20 +02:00
|
|
|
|
|
|
|
urlpatterns = [
|
2021-10-09 14:27:20 +02:00
|
|
|
path('', NewsView.as_view(), name='news'),
|
|
|
|
path('aktualnosci/', RedirectView.as_view(url='/')),
|
|
|
|
path('konkurs/', AboutContestView.as_view(), name='aboutcontest'),
|
2021-09-20 21:27:00 +02:00
|
|
|
path('regulamin/', RulesView.as_view(), name='rules'),
|
|
|
|
path('zadania/', TestsView.as_view(), name='tests'),
|
2021-10-09 14:27:20 +02:00
|
|
|
path('wyniki/', ScoresView, name='scores'),
|
2021-09-20 21:27:00 +02:00
|
|
|
path('wyniki/<int:year>/', ScoresView, name='scores'),
|
|
|
|
path('kontakt/', ContactView.as_view(), name='contact'),
|
|
|
|
path('rejestracja/', SignUpView.as_view(), name='signup'),
|
2021-08-30 02:29:20 +02:00
|
|
|
|
2021-09-20 21:27:00 +02:00
|
|
|
path('konto/', UpdateAccountView, name='account'),
|
2021-09-20 22:19:59 +02:00
|
|
|
path('zgloszenie/', SubmitStudentsView, name='submission'),
|
|
|
|
|
|
|
|
path('robots.txt', RobotsView.as_view()),
|
|
|
|
path('sitemap.xml', SitemapView.as_view())
|
2021-08-30 02:29:20 +02:00
|
|
|
]
|