|
|
@@ -14,9 +14,9 @@ Including another URLconf
|
|
|
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
|
|
|
"""
|
|
|
from django.conf.urls import url, include
|
|
|
-from django.conf.urls.static import static
|
|
|
from django.contrib import admin
|
|
|
from second_pro import settings
|
|
|
+from django.views import static
|
|
|
|
|
|
urlpatterns = [
|
|
|
url(r'^static/(?P<path>.*)$', static.serve,{'document_root': settings.STATIC_ROOT}, name='static'),
|