diff urls.py @ 106:17bc502c65a4

Update "code" page Changed layout and added real data for the snippets list.
author dellsystem <ilostwaldo@gmail.com>
date Tue, 11 Sep 2012 18:06:01 -0400
parents bf731c77ddf9
children 2bca07be6e51
line wrap: on
line diff
--- a/urls.py	Tue Sep 11 17:59:27 2012 -0400
+++ b/urls.py	Tue Sep 11 18:06:01 2012 -0400
@@ -1,4 +1,5 @@
 from django.conf.urls.defaults import *
+from django.views.generic import ListView
 
 # Uncomment the next two lines to enable the admin:
 from django.contrib import admin
@@ -22,8 +23,7 @@
         {'template': 'discuss.djhtml'},
         name='discuss'),
     url(r'^code$',
-        'django.views.generic.simple.direct_to_template',
-        {'template': 'code.djhtml'},
+        'views.code',
         name='code'),
     url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
     url(r'^admin/', include(admin.site.urls)),