mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-23 01:58:24 +02:00
Fix pools for organizers, broken links
This commit is contained in:
@ -12,7 +12,7 @@ DATABASES = {
|
||||
}
|
||||
|
||||
# Break it, fix it!
|
||||
DEBUG = True
|
||||
DEBUG = False
|
||||
|
||||
# Mandatory !
|
||||
ALLOWED_HOSTS = ['inscription.tfjm.org']
|
||||
|
@ -20,7 +20,7 @@ from django.contrib import admin
|
||||
from django.contrib.staticfiles.views import serve
|
||||
from django.urls import path, include, re_path
|
||||
from django.views.defaults import bad_request, permission_denied, page_not_found, server_error
|
||||
from django.views.generic import TemplateView
|
||||
from django.views.generic import TemplateView, RedirectView
|
||||
|
||||
from member.views import DocumentView
|
||||
|
||||
@ -37,10 +37,12 @@ urlpatterns = [
|
||||
path("media/<str:file>/", DocumentView.as_view(), name="document"),
|
||||
|
||||
path('api/', include('api.urls')),
|
||||
]
|
||||
|
||||
urlpatterns += [
|
||||
re_path(r'^%s(?P<path>.*)$' % re.escape(settings.STATIC_URL.lstrip('/')), serve),
|
||||
|
||||
# Supporting old paths
|
||||
path('inscription/', RedirectView.as_view(pattern_name="member:signup")),
|
||||
path('connexion/', RedirectView.as_view(pattern_name="login")),
|
||||
]
|
||||
|
||||
handler400 = bad_request
|
||||
|
Reference in New Issue
Block a user