Commits

Guilherme Gondim committed 83ec16d

Fix URL patterns at example project

  • Participants
  • Parent commits 4a0d390

Comments (0)

Files changed (2)

example/example/urls.py

 from django.conf.urls import patterns, include, url
 from django.contrib import admin
 
-
 admin.autodiscover()
 
 
+blog_urls = patterns(
+    '',
+    url(r'^', include('diario.urls')),
+    url(r'^archive/', include('diario.urls.archive')),
+    url(r'^category/', include('diario.urls.categories')),
+    url(r'^tag/', include('diario.urls.tags')),
+    url(r'^people/', include('diario.urls.people')),
+)
+
 urlpatterns = patterns(
     '',
     url(r'^admin/', include(admin.site.urls)),
-    url(r'^', include('diario.urls', namespace='blog', app_name='diario')),
+    url(r'^', include(blog_urls,  namespace='blog', app_name='diario')),
 )

example/templates/base.html

     <nav>
       <ul>
         <li><a href="/">Home</a></li>
-        <li><a href="{% url 'diario:archive-index' %}">
+        <li><a href="{% url 'blog:archive-index' %}">
           Archive</a></li>
       </ul>
     </nav>