/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
- 11 votes122 views3 answers
- 12 votes88 views4 answers
- 0 vote91 views2 answers
- 0 vote82 views1 answer
- 2 votes96 views3 answers
- 10 votes81 views1 answer
- 4 votes82 views2 answers
- 3 votes79 views2 answers
- 0 vote73 views1 answer
- -1 vote89 views1 answer