Changed the URLs to work for 2009 site.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Tue, 13 Jul 2010 16:32:29 +0530
changeset 104 06b7e950a798
parent 103 852015a7eead
child 105 15c9e537187d
Changed the URLs to work for 2009 site.
project/templates/_menu.html
project/templates/_menu_user.html
project/templates/base.html
project/urls.py
--- a/project/templates/_menu.html	Tue Jul 13 01:43:25 2010 +0530
+++ b/project/templates/_menu.html	Tue Jul 13 16:32:29 2010 +0530
@@ -1,33 +1,33 @@
 <div id="left-inner">
   <ul>
     <li><a href="/">Home</a></li>
-    <li><a href="/submit-registration/">Registration</a></li>
+    <li><a href="/2009/submit-registration/">Registration</a></li>
     <li>
-      <a href="/talks-cfp/">Talks & CfP</a>
+      <a href="/2009/talks-cfp/">Talks & CfP</a>
       <ul>
-        <li><a href="/talks-cfp/schedule/">Conference Schedule</a></li>
-        <li><a href="/talks-cfp/tutorial/">Tutorial Schedule</a></li>
-        <li><a href="/talks-cfp/sprint/">Sprint Plan &amp; Schedule</a></li>
-        <li><a href="/talks-cfp/speakers/">Speakers</a></li>
+        <li><a href="/2009/talks-cfp/schedule/">Conference Schedule</a></li>
+        <li><a href="/2009/talks-cfp/tutorial/">Tutorial Schedule</a></li>
+        <li><a href="/2009/talks-cfp/sprint/">Sprint Plan &amp; Schedule</a></li>
+        <li><a href="/2009/talks-cfp/speakers/">Speakers</a></li>
         {% if user.is_authenticated %}
-          <li><a href="/talks-cfp/list-talks/{{ user.id }}">My talks</a></li>
+          <li><a href="/2009/talks-cfp/list-talks/{{ user.id }}">My talks</a></li>
         {% endif %}
       </ul>
     </li>
     <li>
       About
       <ul>
-        <li><a href="/about/accommodation/">Accommodation</a></li>
-        <li><a href="/about/food/">Food</a></li>
-        <li><a href="/about/venue/">The Venue</a></li>
-        <li><a href="/about/reaching/">Reaching the venue</a></li>
+        <li><a href="/2009/about/accommodation/">Accommodation</a></li>
+        <li><a href="/2009/about/food/">Food</a></li>
+        <li><a href="/2009/about/venue/">The Venue</a></li>
+        <li><a href="/2009/about/reaching/">Reaching the venue</a></li>
       </ul>
     </li>
-    <li><a href="/">Blog</a></li>
+    <li><a href="/2009">Blog</a></li>
     <!--<li><a href="/sponsorship/">Sponsorship</a></li>
     <li><a href="/media/">Media</a></li>-->
     {% if user.is_staff %}
-    <li><a href="/howto/">HowTo</a></li>
+    <li><a href="/2009/howto/">HowTo</a></li>
     {% endif %}<!--
     <li>Follow us:<br /><br />
 	  <a href="http://twitter.com/scipy.in" 
--- a/project/templates/_menu_user.html	Tue Jul 13 01:43:25 2010 +0530
+++ b/project/templates/_menu_user.html	Tue Jul 13 16:32:29 2010 +0530
@@ -9,7 +9,7 @@
         <a href="{% url kiwipycon_account %}">My profile</a> |
 
         {% if user.is_superuser %}
-                <a href="/admin/">Administer</a> |
+                <a href="//2009/admin/">Administer</a> |
         {% endif %}
 
         <a href="{% url kiwipycon_logout %}">Logout</a>
--- a/project/templates/base.html	Tue Jul 13 01:43:25 2010 +0530
+++ b/project/templates/base.html	Tue Jul 13 16:32:29 2010 +0530
@@ -4,17 +4,17 @@
   <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
   <title>{% block title %}{% endblock %} SciPy.in 2009, December 12 - 17, 2009, Trivandrum, Kerala, India</title>
 
-  <link rel="stylesheet" type="text/css" href="/static/jquery/jquery.jgrowl.css" />
-  <link rel="stylesheet" type="text/css" href="/static/css/styles-20090826.css" />
+  <link rel="stylesheet" type="text/css" href="/2009/static/jquery/jquery.jgrowl.css" />
+  <link rel="stylesheet" type="text/css" href="/2009/static/css/styles-20090826.css" />
 
-  <script type="text/javascript" src="/static/jquery/jquery.min.js"></script>
-  <script type="text/javascript" src="/static/jquery/jquery.jgrowl_minimized.js"></script>
-  <script type="text/javascript" src="/static/jquery/jquery.cookie.pack.js"></script>
-  <script type="text/javascript" src="/static/js/kiwipycon.js"></script>
+  <script type="text/javascript" src="/2009/static/jquery/jquery.min.js"></script>
+  <script type="text/javascript" src="/2009/static/jquery/jquery.jgrowl_minimized.js"></script>
+  <script type="text/javascript" src="/2009/static/jquery/jquery.cookie.pack.js"></script>
+  <script type="text/javascript" src="/2009/static/js/kiwipycon.js"></script>
 
   {% block addscripts %}{% endblock %}
 
-  <link rel="icon" href="/static/img/favicon.ico" type="image/x-icon" />
+  <link rel="icon" href="/2009/static/img/favicon.ico" type="image/x-icon" />
 
   <!--<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="/feeds/blog" />-->
 
@@ -22,13 +22,13 @@
 <body>
 
 <div id="logo">
-  <a href="/"><img src="/static/img/scipyshiny_small.png"
+  <a href="/"><img src="/2009/static/img/scipyshiny_small.png"
     alt="SciPy.in Logo" title="SciPy.in Logo"
     width="139" height="130" /></a>
 </div>
 
 <div id="header">
-  <h1>{% block header %}SciPy.in 2009</h1><h3>December 12 - 17, Kerala, India{% endblock %}</h3><h3>Live Stream of the conference is available at: <a href="http://giss.tv:8000/scipy.ogg">http://giss.tv:8000/scipy.ogg</a></h3>
+  <h1>{% block header %}SciPy.in 2009</h1><h3>December 12 - 17, Kerala, India{% endblock %}</h3><h3>Live Streams of the conference was made available at: <a href="http://giss.tv:8000/scipy.ogg">http://giss.tv:8000/scipy.ogg</a></h3>
   {% include '_menu_user.html' %}
 </div>
 
@@ -49,7 +49,7 @@
 </div>
 
 <div id="footer">
-   <p rel="credits">Content by the <a href="/about/team/" alt="SciPy.in Team">SciPy.in Team</a>,
+   <p rel="credits">Content by the <a href="/2009/about/team/" alt="SciPy.in Team">SciPy.in Team</a>,
    website by <a href="http://bitbucket.org/vshivak/kiwipycon/src/tip/AUTHORS" alt="Website's Creators">Kiwi Djangonauts</a>,
    hosting by <a href="http://fossee.in/" alt="Free and Open Source software in Science and Engineering Education">Free and Open Source software in Science and Engineering Education</a>,
    <!-- TODO: logo design by Jason Nielsen--></p>
--- a/project/urls.py	Tue Jul 13 01:43:25 2010 +0530
+++ b/project/urls.py	Tue Jul 13 16:32:29 2010 +0530
@@ -18,94 +18,94 @@
 # Blog & Admin
 urlpatterns = patterns(
     '',
-    url(r'^$',  direct_to_template, {"template": "home.html"}, name='home'),
-    (r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}),
-    (r'^comments/', include('django.contrib.comments.urls')),
-    (r'^admin/(.*)', admin.site.root),
+    url(r'^2009/$',  direct_to_template, {"template": "home.html"}, name='home'),
+    (r'^2009/feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}),
+    (r'^2009/comments/', include('django.contrib.comments.urls')),
+    (r'^2009/admin/(.*)', admin.site.root),
 )
 
 # Talks, etc.
 urlpatterns += patterns('project.kiwipycon.talk.views',
-    url(r'^talks/$',  'list_talks', name='list_talks'),
-    url(r'^talks/talk/(?P<id>\d+)/$',  'talk', name='talk_detail'),
-    url(r'^submit-talk/$',  'submit_talk', name='kiwipycon_submit_talk'),
-    url(r'^edit-talk/(?P<id>\d+)/$',  'edit_talk', name='kiwipycon_edit_talk'),
-    url(r'^talks-cfp/list-talks/(?P<id>\d+)/$',  'list_talks',
+    url(r'^2009/talks/$',  'list_talks', name='list_talks'),
+    url(r'^2009/talks/talk/(?P<id>\d+)/$',  'talk', name='talk_detail'),
+    url(r'^2009/submit-talk/$',  'submit_talk', name='kiwipycon_submit_talk'),
+    url(r'^2009/edit-talk/(?P<id>\d+)/$',  'edit_talk', name='kiwipycon_edit_talk'),
+    url(r'^2009/talks-cfp/list-talks/(?P<id>\d+)/$',  'list_talks',
         name='kiwipycon_list_talk'),
     )
 
 # Registration
 urlpatterns += patterns('project.kiwipycon.registration.views',
-    url(r'^invoice/$',  'invoice', name='kiwipycon_invoice'),
-    url(r'^pdf_invoice/$',  'pdf_invoice', name='kiwipycon_pdf_invoice'),
-    url(r'^registrations/$',  'registrations', name='kiwipycon_registrations'),
-    url(r'^submit-registration/$',  'submit_registration', name='kiwipycon_submit_registration'),
-    url(r'^edit-registration/(?P<id>\d+)/$',  'edit_registration',
+    url(r'^2009/invoice/$',  'invoice', name='kiwipycon_invoice'),
+    url(r'^2009/pdf_invoice/$',  'pdf_invoice', name='kiwipycon_pdf_invoice'),
+    url(r'^2009/registrations/$',  'registrations', name='kiwipycon_registrations'),
+    url(r'^2009/submit-registration/$',  'submit_registration', name='kiwipycon_submit_registration'),
+    url(r'^2009/edit-registration/(?P<id>\d+)/$',  'edit_registration',
         name='kiwipycon_edit_registration'),
-    url(r'^download_csv/', 'download_csv', name="download_csv"),
+    url(r'^2009/download_csv/', 'download_csv', name="download_csv"),
     )
 
 
 # Authentication and Profile
 urlpatterns += patterns('project.kiwipycon.user.views',
-    url(r'^login/$',  'login', name='kiwipycon_login'),
-    url(r'^logout/$',  'logout', name='kiwipycon_logout'),
-    url(r'^account/$',  'account', name='kiwipycon_account'),
-    url(r'^password/$', 'password', name='kiwipycon_password'), # change pwd
-    url(r'^username/$', 'username', name='kiwipycon_username'), # change uname
-    url(r'^edit-profile/$', 'edit_profile', name='kiwipycon_edit_profile'),
+    url(r'^2009/login/$',  'login', name='kiwipycon_login'),
+    url(r'^2009/logout/$',  'logout', name='kiwipycon_logout'),
+    url(r'^2009/account/$',  'account', name='kiwipycon_account'),
+    url(r'^2009/password/$', 'password', name='kiwipycon_password'), # change pwd
+    url(r'^2009/username/$', 'username', name='kiwipycon_username'), # change uname
+    url(r'^2009/edit-profile/$', 'edit_profile', name='kiwipycon_edit_profile'),
     )
 
 # Proceedings
 urlpatterns += patterns('project.kiwipycon.proceedings.views',
-    url(r'^proceedings/submit/$',  'submit', name='kiwipycon_submit_proceedings'),
-    url(r'^proceedings/getusers/$',  'getUsers', name='kiwipycon_getusers_proceedings'),
-    url(r'^proceedings/edit/$',  'edit', name='kiwipycon_edit_proceedings'),
+    url(r'^2009/proceedings/submit/$',  'submit', name='kiwipycon_submit_proceedings'),
+    url(r'^2009/proceedings/getusers/$',  'getUsers', name='kiwipycon_getusers_proceedings'),
+    url(r'^2009/proceedings/edit/$',  'edit', name='kiwipycon_edit_proceedings'),
     )
 
 # About pages and all other static html pages
 urlpatterns += patterns('',
-    url(r'^about/accommodation/$', 
+    url(r'^2009/about/accommodation/$', 
         direct_to_template, {"template": "about/accommodation.html"},
         name='accommodation'),
-    url(r'^about/food/$',
+    url(r'^2009/about/food/$',
         direct_to_template, {"template": "about/food.html"}, name='food'),
-    url(r'^about/venue/$',
+    url(r'^2009/about/venue/$',
         direct_to_template, {"template": "about/venue.html"}, name='venue'),
-    url(r'^about/reaching/$', 
+    url(r'^2009/about/reaching/$', 
         direct_to_template, {"template": "about/reaching.html"},
         name='reaching'),
-    url(r'^talks-cfp/$', 
+    url(r'^2009/talks-cfp/$', 
         direct_to_template, {"template": "talk/talks-cfp.html"},
         name='talks-cfp'),
-    url(r'^talks-cfp/schedule/$', 
+    url(r'^2009/talks-cfp/schedule/$', 
         direct_to_template, {"template": "talk/schedule.html"},
         name='schedule'),
-    url(r'^talks-cfp/tutorial/$', 
+    url(r'^2009/talks-cfp/tutorial/$', 
         direct_to_template, {"template": "talk/tutorial-schedule.html"},
         name='tutorial-schedule'),
-    url(r'^talks-cfp/sprint/$', 
+    url(r'^2009/talks-cfp/sprint/$', 
         direct_to_template, {"template": "talk/sprint-schedule.html"},
         name='sprint-schedule'),
-    url(r'^talks-cfp/speakers/$', 
+    url(r'^2009/talks-cfp/speakers/$', 
         direct_to_template, {"template": "talk/speakers.html"},
         name='speakers'),
-    (r'^accounts/', include('registration.urls')),
+    (r'^2009/accounts/', include('registration.urls')),
     )
 
 # Password reset
 urlpatterns += patterns('django.contrib.auth.views',
-     url(r'^password-reset/$', 'password_reset', name='kiwipycon_password_reset'),
-     url(r'^password-reset-done/$', 'password_reset_done'),
-     url(r'^password-reset-confirm/(?P<uidb36>[-\w]*)/(?P<token>[-\w]*)$', 'password_reset_confirm'),
-     url(r'^password-reset-complete/$', 'password_reset_complete'),
+     url(r'^2009/password-reset/$', 'password_reset', name='kiwipycon_password_reset'),
+     url(r'^2009/password-reset-done/$', 'password_reset_done'),
+     url(r'^2009/password-reset-confirm/(?P<uidb36>[-\w]*)/(?P<token>[-\w]*)$', 'password_reset_confirm'),
+     url(r'^2009/password-reset-complete/$', 'password_reset_complete'),
 )
 
 # Serve static files in DEBUG = True mode
 if settings.DEBUG:
     urlpatterns += patterns('',
-        (r'^media/(?P<path>.*)$', 'django.views.static.serve',
+        (r'^2009/media/(?P<path>.*)$', 'django.views.static.serve',
          {'document_root': settings.MEDIA_ROOT}),
-        (r'^static/(?P<path>.*)$', 'django.views.static.serve',
+        (r'^2009/static/(?P<path>.*)$', 'django.views.static.serve',
          {'document_root': settings.STATIC_ROOT}),
     )