Skip to content

Instantly share code, notes, and snippets.

@borodedamie
Created October 25, 2021 17:55
Show Gist options
  • Save borodedamie/812c843f1d4c9ab85b6550cb3b269c03 to your computer and use it in GitHub Desktop.
Save borodedamie/812c843f1d4c9ab85b6550cb3b269c03 to your computer and use it in GitHub Desktop.
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('images/', include('images.urls'))
]
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_URL)
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment