/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 vote207 views1 answer
- 4 votes164 views4 answers
- 8 votes153 views2 answers
- 3 votes148 views1 answer
- 1 vote158 views1 answer
- 0 vote154 views1 answer
- 12 votes147 views6 answers
- 0 vote180 views2 answers
- 7 votes163 views2 answers
- 6 votes184 views1 answer