Skip to content
Snippets Groups Projects
Commit a7845397 authored by Simon Fernandez's avatar Simon Fernandez
Browse files

Add media path to urls

parent 81fe7495
No related branches found
Tags v1.2.2
No related merge requests found
......@@ -16,7 +16,11 @@ Including another URLconf
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('home.urls')),
]
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) +
[
path('admin/', admin.site.urls),
path('', include('home.urls')),
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment