diff options
author | Weitian LI <liweitianux@gmail.com> | 2014-05-14 11:20:53 +0800 |
---|---|---|
committer | Weitian LI <liweitianux@gmail.com> | 2014-05-14 11:20:53 +0800 |
commit | a827199fb168aa676e3fdbdcfdb04a021f44f3f7 (patch) | |
tree | 3471b0d0918c8355ef361e9e8778ad1dee4a05f2 /archive/urls.py | |
parent | 9634f99cda0e3464491e1ce124a136176a69d4f3 (diff) | |
download | django-skaschool-a827199fb168aa676e3fdbdcfdb04a021f44f3f7.tar.bz2 |
* upaded display format of model Notice 'notice/models.py'
* updated 'archive/urls.py', shortened the url, added a redirect
* updated poster image: 'skaschool-poster.jpg'
* updated the lecturer information of 'page/introduction.html'
Diffstat (limited to 'archive/urls.py')
-rw-r--r-- | archive/urls.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/archive/urls.py b/archive/urls.py index 8657fed..c57b15c 100644 --- a/archive/urls.py +++ b/archive/urls.py @@ -4,13 +4,17 @@ # from django.conf.urls import patterns, include, url +from django.views.generic.base import RedirectView +from django.core.urlresolvers import reverse_lazy from archive.views import ArchiveView urlpatterns = patterns('', # notice list view - url(r'^archive/all$', ArchiveView.as_view(), + url(r'^all$', ArchiveView.as_view(), name='archive_all'), + url(r'^archive/all$', + RedirectView.as_view(url=reverse_lazy('archive_all'))), ) |