from django.conf import settings from django.conf.urls.defaults import * from historical import views as hi_views from historical.models import HistoricArticle # custom views for groups & index urlpatterns = patterns('historical.views', url(r'^$', view=hi_views.index, name="hi-index"), url(r'^(?P[\-\d\w]+)/$', view=hi_views.group_detail, name='hi-group-detail'), url(r'^(?P[\-\d\w]+)/(?P\d{4})/(?P[a-z]{3})/(?P\w{1,2})/(?P[\-\d\w]+)/$', view=hi_views.article_detail, name='hi-article-detail'), url(r'^(?P[\-\d\w]+)/(?P\d{4})/(?P[a-z]{3})/(?P\w{1,2})/$', view=hi_views.article_archive_day, name='hi-article-archive-day'), url(r'^(?P[\-\d\w]+)/(?P\d{4})/(?P[a-z]{3})/$', view=hi_views.article_archive_month, name='hi-article-archive-month'), url(r'^(?P[\-\d\w]+)/(?P\d{4})/$', view=hi_views.article_archive_year, name='hi-article-archive-year'), )