/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 votes124 views1 answer
- 1 vote139 views1 answer
- 3 votes142 views2 answers
- 0 vote122 views2 answers
- 2 votes129 views3 answers
- 1 vote120 views1 answer
- 1 vote291 views1 answer
- 1 vote125 views1 answer
- 0 vote137 views1 answer
- 6 votes136 views3 answers