/Python/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 vote237 views1 answer
- 0 vote192 views1 answer
- 0 vote178 views1 answer
- 0 vote176 views1 answer
- 0 vote187 views1 answer
- 0 vote190 views2 answers
- 70 votes184 views6 answers
- 33 votes160 views4 answers
- 0 vote178 views1 answer
- 1 vote168 views1 answer