/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
- 4 votes147 views4 answers
- 0 vote128 views1 answer
- 0 vote139 views1 answer
- 0 vote139 views1 answer
- 0 vote129 views2 answers
- 0 vote148 views1 answer
- 2 votes130 views1 answer
- 1 vote133 views1 answer
- 3 votes128 views2 answers
- 0 vote141 views1 answer