发布时间:2013-11-22 18:06:37
一、settings引用setting项 from django.conf import settings urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)二、url conf主页url文档urlpatterns 是所有url的链表,可以 += from django.conf.urls import patterns, include, url urlpatterns = pattern.........【阅读全文】