Require invited login and private downloads for the company pilot
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a07ff8-19d0-7820-b4d0-1353833cb7fc
This commit is contained in:
parent
56bf193193
commit
b7d7828f30
27 changed files with 584 additions and 111 deletions
|
|
@ -1,14 +1,15 @@
|
|||
from django.contrib import admin
|
||||
from django.conf import settings
|
||||
from django.conf.urls.static import static
|
||||
from django.contrib.auth.decorators import login_not_required
|
||||
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
|
||||
from vergabe_teilnahme.apps.dokumente.downloads import protected_media
|
||||
from vergabe_teilnahme.apps.preise import views as preise_views
|
||||
|
||||
|
||||
@login_not_required
|
||||
def health(request):
|
||||
return JsonResponse({'status': 'ok'})
|
||||
|
||||
|
|
@ -21,6 +22,8 @@ handler404 = 'vergabe_teilnahme.apps.core.views.custom_404'
|
|||
handler500 = 'vergabe_teilnahme.apps.core.views.custom_500'
|
||||
|
||||
urlpatterns = [
|
||||
path('accounts/', include('vergabe_teilnahme.apps.accounts.urls')),
|
||||
path('media/<path:path>', protected_media, name='protected_media'),
|
||||
path('admin/', admin.site.urls),
|
||||
path('health/', health),
|
||||
path('', home, name='home'),
|
||||
|
|
@ -49,6 +52,3 @@ urlpatterns = [
|
|||
path('core/attrs/<int:content_type_id>/<int:object_id>/<int:attr_pk>/loeschen/', core_views.custom_attribute_loeschen, name='custom_attribute_loeschen'),
|
||||
path('core/attrs/<int:content_type_id>/<int:object_id>/<int:attr_pk>/sort/', core_views.custom_attribute_sort, name='custom_attribute_sort'),
|
||||
]
|
||||
|
||||
if settings.DEBUG:
|
||||
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue