Prototype implementation
This commit is contained in:
parent
315143a6fc
commit
14b0bc6d01
160 changed files with 5731 additions and 42 deletions
40
vergabe_teilnahme/urls.py
Normal file
40
vergabe_teilnahme/urls.py
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
from django.contrib import admin
|
||||
from django.conf import settings
|
||||
from django.conf.urls.static import static
|
||||
from django.http import JsonResponse
|
||||
from django.shortcuts import redirect
|
||||
from django.urls import include, path
|
||||
|
||||
from vergabe_teilnahme.apps.core import views as core_views
|
||||
|
||||
|
||||
def health(request):
|
||||
return JsonResponse({'status': 'ok'})
|
||||
|
||||
|
||||
def home(request):
|
||||
return redirect('ausschreibungen:dashboard')
|
||||
|
||||
|
||||
handler404 = 'vergabe_teilnahme.apps.core.views.custom_404'
|
||||
handler500 = 'vergabe_teilnahme.apps.core.views.custom_500'
|
||||
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
path('health/', health),
|
||||
path('', home, name='home'),
|
||||
path('ausschreibungen/', include('vergabe_teilnahme.apps.ausschreibungen.urls', namespace='ausschreibungen')),
|
||||
path('lose/', include('vergabe_teilnahme.apps.lose.urls')),
|
||||
path('aufgaben/', include('vergabe_teilnahme.apps.aufgaben.urls')),
|
||||
path('dokumente/', include('vergabe_teilnahme.apps.dokumente.urls')),
|
||||
path('preise/', include('vergabe_teilnahme.apps.preise.urls')),
|
||||
path('partner/', include('vergabe_teilnahme.apps.partner.urls')),
|
||||
path('bibliothek/', include('vergabe_teilnahme.apps.bibliothek.urls')),
|
||||
path('marktbegleiter/', include('vergabe_teilnahme.apps.marktbegleiter.urls')),
|
||||
path('nachbetrachtung/', include('vergabe_teilnahme.apps.nachbetrachtung.urls')),
|
||||
path('feedback/', include('vergabe_teilnahme.apps.feedback.urls', namespace='feedback')),
|
||||
path('suche/', core_views.suche, name='suche'),
|
||||
]
|
||||
|
||||
if settings.DEBUG:
|
||||
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
Loading…
Add table
Add a link
Reference in a new issue