示例#1
0
# -*- coding: utf-8 -*-
from django.conf.urls import url

from blogs.views import BlogUserView, BlogDetailView

urlpatterns = [
    # Blog URLs
    url(r'^blogs$', BlogUserView.as_view(), name='blogs_home'),
    url(r'^blogs/(?P<username>[-\w]+)/$', BlogDetailView.as_view(), name='detail_blog')
]
示例#2
0
# -*- coding: utf-8 -*-
from django.conf.urls import url

from blogs.views import BlogUserView, BlogDetailView

urlpatterns = [
    # Blog URLs
    url(r'^blogs$', BlogUserView.as_view(), name='blogs_home'),
    url(r'^blogs/(?P<username>[-\w]+)/$',
        BlogDetailView.as_view(),
        name='detail_blog')
]