We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce2a4be commit 6ef5fc1Copy full SHA for 6ef5fc1
TaskManager/TaskManager/urls.py
@@ -16,9 +16,17 @@
16
"""
17
from django.contrib import admin
18
from django.urls import path, include
19
+from django.conf.urls.static import static
20
+from django.conf import settings
21
22
urlpatterns = [
23
path('admin/', admin.site.urls),
24
path('authSystem/',include('authSystem.urls')),
25
path('tasks/',include('tasks.urls'))
26
]
27
+
28
+if settings.DEBUG:
29
+ urlpatterns += static(
30
+ settings.MEDIA_URL,
31
+ document_root=settings.MEDIA_ROOT,
32
+ )
0 commit comments