1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-08-04 23:03:46 +02:00
This commit is contained in:
Yohann D'ANELLO
2020-04-30 19:12:15 +02:00
parent 683d523da9
commit eee7fc845c
10 changed files with 272 additions and 2 deletions

View File

@@ -19,6 +19,8 @@ from django.contrib import admin
from django.urls import path, include
from django.views.generic import TemplateView
from member.views import DocumentView
urlpatterns = [
path('', TemplateView.as_view(template_name="index.html"), name="index"),
path('i18n/', include('django.conf.urls.i18n')),
@@ -28,7 +30,11 @@ urlpatterns = [
path('member/', include('member.urls')),
path('tournament/', include('tournament.urls')),
path("media/<str:file>/", DocumentView.as_view(), name="document"),
path('api/', include('api.urls')),
]
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
# urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)