Skip to content

Commit 35aa579

Browse files
authored
Update urls.py
1 parent 6197c60 commit 35aa579

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: hospital/urls.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
from django.urls import path
22
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
36

47
urlpatterns = [
58
path('', views.HomeView.as_view(), name='index'),
@@ -13,3 +16,5 @@
1316
path('gallery/', views.GalleryListView.as_view(), name="gallery"),
1417
path('contact/', views.ContactView.as_view(), name="contact")
1518
]
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

Comments
 (0)