/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
- 1 vote313 views1 answer
- 0 vote326 views1 answer
- 0 vote319 views1 answer
- 0 vote302 views4 answers
- 2 votes321 views2 answers
- 0 vote277 views2 answers
- 1 vote353 views1 answer
- -2 votes312 views1 answer
- 0 vote343 views1 answer
- 0 vote310 views1 answer