/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
- 35 votes146 views5 answers
- 7 votes88 views2 answers
- 1 vote133 views1 answer
- 0 vote163 views1 answer
- 0 vote118 views1 answer
- 2 votes126 views1 answer
- 1 vote112 views1 answer
- 1 vote126 views1 answer
- 9 votes148 views6 answers
- 0 vote78 views1 answer