# CCS CS Lab Main URLs # # Douglas Thrift # # $Id$ from ccscslab.main.sitemaps import ComputerSitemap, MainSitemap, PersonSitemap, RoleSitemap from django.conf.urls.defaults import * sitemaps = { 'main': MainSitemap, 'person': PersonSitemap, 'computer': ComputerSitemap, 'role': RoleSitemap, } urlpatterns = patterns('ccscslab.main.views', (r'^$', 'the_lab'), (r'^people$', 'people'), (r'^people/$', 'people_redirect'), url(r'^people/(?P[a-z0-9]{1,16})$', 'person', name = 'person_view'), (r'^computers$', 'computers'), (r'^computers/$', 'computers_redirect'), url(r'^computers/(?P[a-z]+)$', 'computer', name = 'computer_view'), (r'^roles/$', 'roles_redirect'), url(r'^roles/(?P[-a-z]+)$', 'role', name = 'role_view'), (r'^account$', 'account'), (r'^account/requests$', 'account_requests'), (r'^account/requests/fullfilled$', 'account_requests_fullfilled'), (r'^account/requests/update$', 'account_requests_update'), (r'^password$', 'password'), (r'^login$', 'login'), (r'^robots\.txt$', 'robots_txt'), (r'^sitemap\.gz$', 'sitemap_gz', {'sitemaps': sitemaps}), ) urlpatterns += patterns('django.contrib.auth.views', (r'^logout$', 'logout_then_login', {'login_url': '/'}), )