From 0cfd4120f8de176b6da8f30c45767f70138bc15e Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Thu, 12 Sep 2019 11:56:13 +0530 Subject: Modify redirecting urls --- website/views.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'website') diff --git a/website/views.py b/website/views.py index 4342396..6299121 100644 --- a/website/views.py +++ b/website/views.py @@ -153,7 +153,7 @@ def cfp(request): proposals = Proposal.objects.filter(user=request.user).count() context['user'] = user #context['cfp_dates'] = 'August 20' - return redirect('/cfp') + return redirect('/2019/cfp') #template = loader.get_template('index.html') #return render(request, 'index.html', context) else: @@ -970,19 +970,19 @@ def user_register(request): key=key ) - return redirect('/cfp') + return redirect('/2019/cfp') else: if request.user.is_authenticated: - return redirect('/view_profile/') + return redirect('/2019/view_profile/') return render( request, "user-register.html", {"form": form} ) else: if request.user.is_authenticated and is_email_checked(request.user): - return redirect('/view-abstracts/') + return redirect('/2019/view-abstracts/') elif request.user.is_authenticated: - return redirect('/cfp') + return redirect('/2019/cfp') form = UserRegistrationForm() return render(request, "user-register.html", {"form": form}) # required for ticket booking -- cgit