/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 vote182 views2 answers
- 0 vote123 views1 answer
- 0 vote136 views1 answer
- 1 vote109 views1 answer
- 27 votes114 views4 answers
- 0 vote128 views1 answer
- 13 votes78 views1 answer
- 2 votes118 views1 answer
- 0 vote127 views1 answer
- 2 votes128 views1 answer