/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
- 1 vote209 views2 answers
- 0 vote225 views1 answer
- 0 vote216 views2 answers
- 2 votes196 views2 answers
- 0 vote153 views1 answer
- 0 vote193 views1 answer
- 1 vote167 views1 answer
- 0 vote198 views1 answer
- 0 vote136 views1 answer
- 3 votes175 views1 answer