/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
- 43 votes237 views1 answer
- 0 vote300 views1 answer
- 0 vote270 views1 answer
- 0 vote262 views1 answer
- 3 votes297 views2 answers
- 1 vote275 views2 answers
- 0 vote251 views1 answer
- 0 vote277 views1 answer
- 0 vote268 views1 answer
- 12 votes273 views2 answers