/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 vote350 views1 answer
- 3 votes413 views1 answer
- 1 vote377 views3 answers
- 1 vote330 views1 answer
- 11 votes357 views2 answers
- 1 vote353 views1 answer
- 0 vote373 views5 answers
- 0 vote321 views1 answer
- 41 votes346 views6 answers
- 1 vote345 views1 answer