**项目app--urls配置**
~~~
# _*_ coding:utf-8 _*_
__author__ = 'canmeng'
__date__ = '2018/1/7 19:16'
from django.conf.urls import url
#引入app项目 view
from .import views
#blog_title、blog_article为views函数变量。article_id接收views请求的数据ID
urlpatterns = [
url(r'^$', views.blog_title, name="blog_title"),
url(r'(?P<article_id>\d)/$', views.blog_article, name="blog_detail"),
url(r'(?P<pk>[0-9]+)/$', views.chanpin_names, name="chanpin_names"),
]
~~~