在项目的urls.py文件中
默认urlpatterns是空的列表需要填入url匹配的路由,默认使用static
from django.conf.urls import include, url
from django.contrib.staticfiles import views
urlpatterns = [
url(r'^static/(?P<path>.*)$', views.serve),
url(r'^admin/', include('admin.urls', namespace="admin")),
# url(r'^admin/', include(admin.site.urls)),
]