Django18初体验
1228 浏览 5 years, 11 months
17.18 静态文件
版权声明: 转载请注明出处 http://www.codingsoho.com/from django.conf import settings
from django.conf.urls.static import static
if settings.DEBUG:
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)