/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
- 7 votes139 views3 answers
- 26 votes161 views3 answers
- 114 votes134 views6 answers
- 0 vote131 views1 answer
- 0 vote135 views1 answer
- 122 votes134 views6 answers
- 1 vote140 views1 answer
- -1 vote147 views1 answer
- 1 vote147 views1 answer
- 0 vote166 views1 answer