thestudentlife/Manhattan-Project

View on GitHub
mainsite/urls.py

Summary

Maintainability
A
0 mins
Test Coverage
from django.conf.urls import patterns, include, url
from mainsite import views

urlpatterns = patterns('',
                       url(r'^$', views.home, name='home'),
                       # url(r'^search/$', views.search_query, name='search'),
                       url(r'^search/$', views.google_search, name='search'),
                       url(r'^page/(?P<name>\w+)/$', views.page, name='page'),
                       url(r'^archives/$', views.archives, name='archives'),
                       url(r'^person/(?P<person_id>\d+)/$', views.person, name='person'),
                       url(r'^articles/\d+/\d+/\d+/\w+/(?P<legacy_id>\d+)', views.legacy_article,name='legacy_article'),
                       url(r'^(?P<section_slug>[^/]+)/$', views.section, name='section'),
                       url(r'^(?P<section_name>[^/]+)/(?P<article_id>\d+)/(?P<article_name>.+)/$', views.article,
                           name='article'),
                       url(r'^(?P<section_name>[^/]+)/(?P<article_id>\d+)/$', views.article, name='article'),
)