source: src/django_gheat/samples/persisted/home/urls.py@ 9006

Last change on this file since 9006 was 9006, checked in by dennisw, 14 years ago

django_gheat - versie van gheat die gebruik maakt van django framework, ondersteunt SQL connecties in tegenstelling tot gheat dat gebruik maakt van sqlite

File size: 566 bytes
Line 
1from django.conf.urls.defaults import *
2from django.views.generic.simple import direct_to_template
3from django.conf import settings
4
5urlpatterns = patterns('',
6 ('^about/$', direct_to_template, {
7 'template': 'about.html'
8 })
9)
10
11
12urlpatterns = patterns('home.views',
13 url(
14 regex = r'',
15 view = direct_to_template,
16 name = 'home',
17 kwargs = {
18 'template': 'home.html',
19 'extra_context': {
20 'google_key':settings.GOOGLE_MAPS_KEY,
21 }
22 }
23 ),
24)
Note: See TracBrowser for help on using the repository browser.