From 9c8d71542a63c789bf69d8e9ced9b94ed69f4c75 Mon Sep 17 00:00:00 2001 From: komalsheth286 Date: Tue, 4 Oct 2016 17:52:16 +0530 Subject: /2016/ removed from links --- scipy2016/settings.py | 2 +- scipy2016/urls.py | 12 ++++++------ website/templates/cfp.html | 2 +- website/templates/view-abstracts.html | 21 ++++++++++----------- 4 files changed, 18 insertions(+), 19 deletions(-) diff --git a/scipy2016/settings.py b/scipy2016/settings.py index 1c0ef19..9f24b41 100755 --- a/scipy2016/settings.py +++ b/scipy2016/settings.py @@ -148,7 +148,7 @@ USE_TZ = True STATIC_URL = '/static/' MEDIA_ROOT = os.path.join(BASE_DIR, 'uploads') -MEDIA_URL = "/2016/downloads/" +MEDIA_URL = "/downloads/" LOGIN_REDIRECT_URL = '/cfp' diff --git a/scipy2016/urls.py b/scipy2016/urls.py index 56c899b..5878a44 100755 --- a/scipy2016/urls.py +++ b/scipy2016/urls.py @@ -14,15 +14,15 @@ urlpatterns = patterns('', url(r'^', include('social.apps.django_app.urls', namespace='social')), url(r'^', include('django.contrib.auth.urls', namespace='auth')), - url(r'^2016/forgotpassword/$', password_reset, {'template_name': 'register/password_reset_form.html'}, name="password_reset"), - url(r'^2016/password_reset/(?P[0-9A-Za-z]+)-(?P.+)/$', + url(r'^forgotpassword/$', password_reset, {'template_name': 'register/password_reset_form.html'}, name="password_reset"), + url(r'^password_reset/(?P[0-9A-Za-z]+)-(?P.+)/$', password_reset_confirm, {'template_name': 'register/password_reset_confirm.html'}, name='password_reset_confirm'), - url(r'^2016/password_reset/mail_sent/$', password_reset_done, {'template_name': 'register/password_reset_done.html'}, + url(r'^password_reset/mail_sent/$', password_reset_done, {'template_name': 'register/password_reset_done.html'}, name='password_reset_done'), - url(r'^2016/password_reset/complete/$', password_reset_complete, {'template_name': 'register/password_reset_complete.html'}, + url(r'^password_reset/complete/$', password_reset_complete, {'template_name': 'register/password_reset_complete.html'}, name='password_reset_complete'), - url(r'^2016/changepassword/$', password_change, {'template_name': 'register/password_change_form.html'}, + url(r'^changepassword/$', password_change, {'template_name': 'register/password_change_form.html'}, name='password_change'), - url(r'^2016/password_change/done/$', password_change_done, {'template_name': 'register/password_change_done.html'}, + url(r'^password_change/done/$', password_change_done, {'template_name': 'register/password_change_done.html'}, name='password_change_done'), ) diff --git a/website/templates/cfp.html b/website/templates/cfp.html index 8886937..e0eb537 100755 --- a/website/templates/cfp.html +++ b/website/templates/cfp.html @@ -101,7 +101,7 @@ {{ form.as_p }}

Create an Account - Forgot Password? + Forgot Password? {% csrf_token %} diff --git a/website/templates/view-abstracts.html b/website/templates/view-abstracts.html index 4933244..8979363 100755 --- a/website/templates/view-abstracts.html +++ b/website/templates/view-abstracts.html @@ -61,13 +61,11 @@ You have not submitted any proposal. To submit proposal click - - - - - + + + {% else %} @@ -88,7 +86,9 @@ You have not submitted any proposal. To submit proposal click {{proposal.title}} View {% endif %} - - {% for rating in ratings %} - {{rating.rating}} +{% if user.is_superuser %} + {% for rating in proposal.ratings_set.all %} + {{ rating.rating}} by {{rating.user}}
{% endfor %} - - - + +{% endif %} {% if proposal.status = 'Accepted' %}
{{proposal.status}}
-- cgit