We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6197c60 commit 35aa579Copy full SHA for 35aa579
hospital/urls.py
@@ -1,5 +1,8 @@
1
from django.urls import path
2
from . import views
3
+from django.contrib.staticfiles.urls import staticfiles_urlpatterns
4
+from django.conf.urls.static import static
5
+from django.conf import settings
6
7
urlpatterns = [
8
path('', views.HomeView.as_view(), name='index'),
@@ -13,3 +16,5 @@
13
16
path('gallery/', views.GalleryListView.as_view(), name="gallery"),
14
17
path('contact/', views.ContactView.as_view(), name="contact")
15
18
]
19
+urlpatterns += static(settings.MEDIA_URL, document_root = settings.MEDIA_ROOT)
20
+urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
0 commit comments