1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
from django.conf.urls.defaults import patterns, include, url
from django.conf import settings
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'mm_app.views.home', name='home'),
# url(r'^mm_app/', include('mm_app.foo.urls')),
# This will be the new index page
url(r'^2$', 'views.pages.index'),
url(r'^2/$', 'views.pages.index'),
# This will be the new archives page
url(r'^2/archives/(?P<mlist_fqdn>.*@.*)/(?P<year>\d{4})/(?P<month>\d{2})/$', 'views.pages.archives'),
url(r'^2/archives/(?P<mlist_fqdn>.*@.*)/(?P<year>\d{4})/(?P<month>\d{2})$', 'views.pages.archives'),
url(r'^2/archives/(?P<mlist_fqdn>.*@.*)/$', 'views.pages.archives'),
url(r'^2/archives/(?P<mlist_fqdn>.*@.*)$', 'views.pages.archives'),
# This will be the new recent page
url(r'^2/recent/(?P<mlist_fqdn>.*@.*)/$', 'views.pages.recent'),
url(r'^2/recent/(?P<mlist_fqdn>.*@.*)$', 'views.pages.recent'),
# Search
url(r'^2/search$', 'views.pages.search'),
url(r'^2/search/(?P<mlist_fqdn>.*@.*)$', 'views.pages.search_keyword'),
url(r'^2/search/(?P<mlist_fqdn>.*@.*)/$', 'views.pages.search_keyword'),
url(r'^2/search/(?P<mlist_fqdn>.*@.*)\/(?P<keyword>.*)$', 'views.pages.search_keyword'),
url(r'^2/tag/(?P<mlist_fqdn>.*@.*)\/(?P<tag>.*)$', 'views.pages.search_tag'),
# mockups:
url(r'^$', 'views.mockup.index'),
url(r'^archives$', 'views.mockup.archives'),
url(r'^archives/(?P<year>\d{4})/(?P<month>\d{2})/$', 'views.mockup.archives'),
url(r'^recent$', 'views.mockup.recent'),
url(r'^search$', 'views.mockup.search'),
url(r'^search\/(?P<keyword>.*)$', 'views.mockup.search_keyword'),
url(r'^tag\/(?P<tag>.*)$', 'views.mockup.search_tag'),
# 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)),
)
#) + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
urlpatterns += staticfiles_urlpatterns()
|