diff options
author | Aamir Khan <syst3m.w0rm@gmail.com> | 2012-07-24 17:00:25 -0400 |
---|---|---|
committer | Aamir Khan <syst3m.w0rm@gmail.com> | 2012-07-24 17:00:25 -0400 |
commit | 9f18a590819a01017c15169d82763680a72848fb (patch) | |
tree | 9c781cd677eeae9b1e50e986647e1929e99bdac7 /urls.py | |
parent | ae77d9901e2a466622818f95d784fb85b5296727 (diff) | |
download | hyperkitty-9f18a590819a01017c15169d82763680a72848fb.tar.gz hyperkitty-9f18a590819a01017c15169d82763680a72848fb.tar.xz hyperkitty-9f18a590819a01017c15169d82763680a72848fb.zip |
Packaging hyperkitty
Diffstat (limited to 'urls.py')
-rw-r--r-- | urls.py | 106 |
1 files changed, 0 insertions, 106 deletions
diff --git a/urls.py b/urls.py deleted file mode 100644 index 29edb06..0000000 --- a/urls.py +++ /dev/null @@ -1,106 +0,0 @@ -from django.conf.urls.defaults import patterns, include, url -from django.conf import settings -from django.views.generic.simple import direct_to_template -from api import EmailResource, ThreadResource, SearchResource - -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('', - # Account - url(r'^accounts/login/$', 'views.accounts.user_login', name='user_login'), - url(r'^accounts/logout/$', 'views.accounts.user_logout', name='user_logout'), - url(r'^accounts/profile/$', 'views.accounts.user_profile', name='user_profile'), - url(r'^accounts/register/$', 'views.accounts.user_registration', name='user_registration'), - - - # Index - url(r'^/$', 'views.pages.index', name='index'), - url(r'^$', 'views.pages.index', name='index'), - - # Archives - url(r'^archives/(?P<mlist_fqdn>.*@.*)/(?P<year>\d{4})/(?P<month>\d\d?)/(?P<day>\d\d?)/$', - 'views.list.archives'), - url(r'^archives/(?P<mlist_fqdn>.*@.*)/(?P<year>\d{4})/(?P<month>\d\d?)/$', - 'views.list.archives'), - url(r'^archives/(?P<mlist_fqdn>.*@.*)/$', - 'views.list.archives'), - - # Threads - url(r'^thread/(?P<mlist_fqdn>.*@.*)/(?P<threadid>.+)/$', - 'views.thread.thread_index'), - - - # Lists - url(r'^list/$', 'views.pages.index'), # Can I remove this URL? - url(r'^list/(?P<mlist_fqdn>.*@.*)/$', - 'views.list.list'), - - # Search Tag - url(r'^tag/(?P<mlist_fqdn>.*@.*)\/(?P<tag>.*)\/(?P<page>\d+)/$', - 'views.list.search_tag'), - url(r'^tag/(?P<mlist_fqdn>.*@.*)\/(?P<tag>.*)/$', - 'views.list.search_tag'), - - # Search - # If page number is present in URL - url(r'^search/(?P<mlist_fqdn>.*@.*)\/(?P<target>.*)\/(?P<keyword>.*)\/(?P<page>\d+)/$', - 'views.list.search_keyword'), - # Show the first page as default when no page number is present in URL - url(r'^search/(?P<mlist_fqdn>.*@.*)\/(?P<target>.*)\/(?P<keyword>.*)/$', - 'views.list.search_keyword'), - url(r'^search/(?P<mlist_fqdn>.*@.*)/$', - 'views.list.search'), - - - ### MESSAGE LEVEL VIEWS ### - # Vote a message - url(r'^message/(?P<mlist_fqdn>.*@.*)/(?P<messageid>.+)/$', - 'views.message.index'), - - url(r'^vote/(?P<mlist_fqdn>.*@.*)/$', - 'views.message.vote'), - ### MESSAGE LEVEL VIEW ENDS ### - - - - ### THREAD LEVEL VIEWS ### - # Thread view page - url(r'^thread/(?P<mlist_fqdn>.*@.*)/(?P<threadid>.+)/$', - 'views.thread.thread_index'), - - # Add Tag to a thread - url(r'^addtag/(?P<mlist_fqdn>.*@.*)\/(?P<email_id>.*)/$', - 'views.thread.add_tag'), - ### THREAD LEVEL VIEW ENDS ### - - - # REST API - url(r'^api/$', 'views.api.api'), - url(r'^api/email\/(?P<mlist_fqdn>.*@.*)\/(?P<messageid>.*)/', - EmailResource.as_view()), - url(r'^api/thread\/(?P<mlist_fqdn>.*@.*)\/(?P<threadid>.*)/', - ThreadResource.as_view()), - url(r'^api/search\/(?P<mlist_fqdn>.*@.*)\/(?P<field>.*)\/(?P<keyword>.*)/', - SearchResource.as_view()), - - # Uncomment the admin/doc line below to enable admin documentation: - # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), - - # Admin - url(r'^admin/', include(admin.site.urls)), - - # Robots.txt - url(r'^robots\.txt$', direct_to_template, - {'template': 'robots.txt', 'mimetype': 'text/plain'}), - - # Social Auth - url(r'', include('social_auth.urls')), - -) -#) + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) -urlpatterns += staticfiles_urlpatterns() - |