foerderbarometer/input/urls.py

29 lines
910 B
Python
Executable File

from django.urls import path, include
from django.views.i18n import JavaScriptCatalog
from .views import (
index,
done,
export,
authorize,
deny,
ApplicationView,
ApplicationStartView,
ProjectInfoView,
)
urlpatterns = [
path('', index, name='index'),
path('saved', done, name='done'),
path('export', export, name='export'),
path('authorize/<str:choice>/<int:pk>', authorize, name='authorize'),
path('deny/<str:choice>/<int:pk>', deny, name='deny'),
path('extern/', include([
path('', ApplicationStartView.as_view(), name='extern'),
path('info/projektfoerderung-ab-1000/', ProjectInfoView.as_view(), name='info-foerderprojekt-ab-1000'),
path('<slug:type>/', ApplicationView.as_view(), name='extern'),
])),
# JavaScript translations for date widgets, etc.
path('jsi18n/', JavaScriptCatalog.as_view(), name='jsi18n'),
]