/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
- 6 votes316 views2 answers
- 0 vote366 views1 answer
- 0 vote357 views2 answers
- 1 vote319 views2 answers
- 2 votes293 views3 answers
- 6 votes318 views2 answers
- 0 vote399 views1 answer
- 0 vote314 views1 answer
- 1 vote333 views1 answer
- 0 vote368 views1 answer