annotate bns_website/urls.py @ 3:71f2941161e9
Created a generic view (for now) to display a home page.
Wrote a test for the home page. Created a test settings file that uses sqlite.
Created simple 404, 500, base, and home page templates.
author |
Brian Neal <bgneal@gmail.com> |
date |
Fri, 28 Oct 2011 20:32:29 -0500 |
parents |
c8881d9ca347 |
children |
48ff23eab86a |
rev |
line source |
bgneal@0
|
1 from django.conf.urls.defaults import patterns, include, url
|
bgneal@3
|
2 #from django.contrib import admin
|
bgneal@3
|
3 from django.views.generic.base import TemplateView
|
bgneal@0
|
4
|
bgneal@3
|
5
|
bgneal@3
|
6 #admin.autodiscover()
|
bgneal@0
|
7
|
bgneal@0
|
8 urlpatterns = patterns('',
|
bgneal@3
|
9 url(r'^$',
|
bgneal@3
|
10 TemplateView.as_view(template_name="home.html"),
|
bgneal@3
|
11 name="home"),
|
bgneal@3
|
12
|
bgneal@0
|
13 # Examples:
|
bgneal@0
|
14 # url(r'^$', 'bns_website.views.home', name='home'),
|
bgneal@0
|
15 # url(r'^bns_website/', include('bns_website.foo.urls')),
|
bgneal@0
|
16
|
bgneal@0
|
17 # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
bgneal@0
|
18 # url(r'^admin/', include(admin.site.urls)),
|
bgneal@0
|
19 )
|