Mercurial > public > bravenewsurf
view 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 |
line wrap: on
line source
from django.conf.urls.defaults import patterns, include, url #from django.contrib import admin from django.views.generic.base import TemplateView #admin.autodiscover() urlpatterns = patterns('', url(r'^$', TemplateView.as_view(template_name="home.html"), name="home"), # Examples: # url(r'^$', 'bns_website.views.home', name='home'), # url(r'^bns_website/', include('bns_website.foo.urls')), # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), # url(r'^admin/', include(admin.site.urls)), )