/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
- 8 votes311 views5 answers
- 1 vote364 views2 answers
- 0 vote432 views1 answer
- 0 vote372 views1 answer
- 0 vote349 views1 answer
- 0 vote338 views1 answer
- 7 votes307 views3 answers
- 2 votes370 views2 answers
- 15 votes385 views4 answers
- 0 vote338 views1 answer