From a827199fb168aa676e3fdbdcfdb04a021f44f3f7 Mon Sep 17 00:00:00 2001 From: Weitian LI Date: Wed, 14 May 2014 11:20:53 +0800 Subject: * 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' --- archive/urls.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'archive') 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'))), ) -- cgit v1.2.2