jukanntenn/django-blog-tutorial

project 的url和application的url问题

Closed this issue · 1 comments

project:
url(r'^blog/', include('blog.urls')),
application:
url(r'^$', views.IndexView.as_view(), name='blog')

project
url(r'', include('blog.urls', namespace='blog', app_name='blog'))
application:
url(r'^blog/$', views.IndexView.as_view(), name='index')

What's the different?