urls.py 731 Bytes
Newer Older
1
from django.conf.urls import patterns, include, url
Daniel W Bond's avatar
Daniel W Bond committed
2
from django.views.generic import TemplateView
3 4 5 6

from django.contrib import admin
admin.autodiscover()

Daniel W Bond's avatar
Daniel W Bond committed
7 8 9
# custom 404
# custom 500

10
urlpatterns = patterns('',
11 12

    # project-level urls
Jason D Yeomans's avatar
Jason D Yeomans committed
13
    url(r'^$', TemplateView.as_view( template_name="index.html" ), name='index'),
14
    url(r'^about/$', TemplateView.as_view(template_name='about.html'), name='about'),
Daniel W Bond's avatar
Daniel W Bond committed
15
    url(r'^privacy/$', TemplateView.as_view(template_name='privacy.html'), name='privacy'),
Daniel W Bond's avatar
Daniel W Bond committed
16

17 18
    # app-level urls
    url(r'^housing/', include('housing.urls')),
Jason D Yeomans's avatar
Jason D Yeomans committed
19
    url(r'^accounts/', include('accounts.urls')),
20 21

    # alternate interfaces
22 23 24
    url(r'^api/', include('api.urls')),
    url(r'^admin/', include(admin.site.urls)),
)