forked from jhao104/django-blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
31 lines (28 loc) · 1.03 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name: urls.py
Description :
Author : JHao
date: 2017/4/13
-------------------------------------------------
Change Activity:
2017/4/13:
-------------------------------------------------
"""
__author__ = 'JHao'
from blog import views
from django.conf.urls import url
urlpatterns = [
url(r'^index/$', views.Index, name='index'),
url(r'^about/$', views.About, name='about'),
url(r'^archive/$', views.archive, name='archive'),
url(r'^link/$', views.Link, name='link'),
url(r'^message$', views.Message, name='message'),
url(r'^article/(?P<pk>\d+)/$', views.Articles, name='article'),
url(r'^get_comment/$', views.GetComment, name='get_comment'),
url(r'^detail/(?P<pk>\d+)/$', views.detail, name='detail'),
url(r'^detail/(?P<pk>\d+)$', views.detail, name='detail'),
url(r'^search/$', views.search, name='search'),
url(r'^tag/(?P<name>.*?)/$', views.tag, name='tag'),
]