comparison 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
comparison
equal deleted inserted replaced
105:2602f54c018d 106:17bc502c65a4
1 from django.conf.urls.defaults import * 1 from django.conf.urls.defaults import *
2 from django.views.generic import ListView
2 3
3 # Uncomment the next two lines to enable the admin: 4 # Uncomment the next two lines to enable the admin:
4 from django.contrib import admin 5 from django.contrib import admin
5 admin.autodiscover() 6 admin.autodiscover()
6 7
20 url(r'^discuss$', 21 url(r'^discuss$',
21 'django.views.generic.simple.direct_to_template', 22 'django.views.generic.simple.direct_to_template',
22 {'template': 'discuss.djhtml'}, 23 {'template': 'discuss.djhtml'},
23 name='discuss'), 24 name='discuss'),
24 url(r'^code$', 25 url(r'^code$',
25 'django.views.generic.simple.direct_to_template', 26 'views.code',
26 {'template': 'code.djhtml'},
27 name='code'), 27 name='code'),
28 url(r'^admin/doc/', include('django.contrib.admindocs.urls')), 28 url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
29 url(r'^admin/', include(admin.site.urls)), 29 url(r'^admin/', include(admin.site.urls)),
30 url(r'^accounts/logout/', 'django.contrib.auth.views.logout', 30 url(r'^accounts/logout/', 'django.contrib.auth.views.logout',
31 {'template_name' : 'index.djhtml', 'next_page' : '/'}), 31 {'template_name' : 'index.djhtml', 'next_page' : '/'}),