/Python/Django/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
- 3 votes252 views6 answers
- 0 vote279 views1 answer
- 0 vote222 views2 answers
- 4 votes293 views2 answers
- 0 vote223 views1 answer
- 7 votes321 views4 answers
- 0 vote307 views1 answer
- 0 vote245 views2 answers
- 2 votes219 views1 answer
- 0 vote241 views1 answer