/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
- 0 vote174 views1 answer
- 0 vote198 views2 answers
- 1 vote180 views1 answer
- 0 vote186 views1 answer
- 1 vote162 views2 answers
- 0 vote178 views1 answer
- 1 vote184 views1 answer
- -1 vote169 views1 answer
- 1 vote175 views1 answer
- 0 vote170 views1 answer