Commits

Amar Šahinović committed 0c9c7d0

Give name to test url

  • Participants
  • Parent commits 66e6491

Comments (0)

Files changed (1)

foundation/urls.py

-from django.conf.urls import patterns
+from django.conf.urls import patterns, url
 from django.views.generic import TemplateView
 
 # Test patern, renders Zurb Foundation default page using base template
 urlpatterns = patterns('',
-    (r'^foundation/', TemplateView.as_view(template_name="foundation/index.html")),
+    url(regex=r'^foundation/', 
+        view=TemplateView.as_view(template_name="foundation/index.html"), 
+        name="foundation_index"),
 )