/Python/Urlpatterns += static(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT})
Urlpatterns += static(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT})
Urlpatterns += static(r'^static/(?P.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT})
2
Source: stackoverflow.com
- 0 vote132 views1 answer
- 0 vote166 views1 answer
- 6 votes134 views6 answers
- 0 vote127 views1 answer
- 0 vote134 views1 answer
- 2 votes120 views1 answer
- 5 votes165 views1 answer
- 0 vote141 views1 answer
- 20 votes133 views6 answers
- 0 vote137 views2 answers