/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 vote113 views1 answer
- 6 votes76 views2 answers
- 0 vote111 views1 answer
- 0 vote100 views1 answer
- 16 votes134 views6 answers
- 1 vote112 views1 answer
- 0 vote112 views1 answer
- 92 votes117 views6 answers
- 0 vote107 views1 answer
- -2 votes119 views1 answer