Mercurial > public > bravenewsurf
diff 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 diff
--- a/bns_website/urls.py Thu Oct 27 20:57:52 2011 -0500 +++ b/bns_website/urls.py Fri Oct 28 20:32:29 2011 -0500 @@ -1,17 +1,19 @@ from django.conf.urls.defaults import patterns, include, url +#from django.contrib import admin +from django.views.generic.base import TemplateView -# Uncomment the next two lines to enable the admin: -# from django.contrib import admin -# admin.autodiscover() + +#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')), - # Uncomment the admin/doc line below to enable admin documentation: # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), - - # Uncomment the next line to enable the admin: # url(r'^admin/', include(admin.site.urls)), )