Created
October 25, 2021 17:55
-
-
Save borodedamie/812c843f1d4c9ab85b6550cb3b269c03 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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