diff options
author | hardythe1 | 2013-10-14 16:15:50 +0530 |
---|---|---|
committer | hardythe1 | 2013-10-14 16:15:50 +0530 |
commit | 4eef2e49dccf979a27790ef7d6db0c5aba187dd9 (patch) | |
tree | 5145c3c5cf26abcc1da913497770ce5c5f8392e3 /scipy | |
parent | dd98080daf1caee4152fc08fe1b74aa6db49ed7a (diff) | |
download | SciPy2013-4eef2e49dccf979a27790ef7d6db0c5aba187dd9.tar.gz SciPy2013-4eef2e49dccf979a27790ef7d6db0c5aba187dd9.tar.bz2 SciPy2013-4eef2e49dccf979a27790ef7d6db0c5aba187dd9.zip |
resolving url issue in accounts
Diffstat (limited to 'scipy')
-rw-r--r-- | scipy/views.py | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/scipy/views.py b/scipy/views.py index a23f9d1..61bd9b5 100644 --- a/scipy/views.py +++ b/scipy/views.py @@ -25,7 +25,7 @@ def user_login(request): else: form = UserLoginForm() - next = '/accounts/upload-document/' + next = '/2013/accounts/upload-document/' if 'next' in request.GET: next = request.GET['next'] @@ -35,7 +35,7 @@ def user_login(request): context['next'] = next return render_to_response('login.html', context) else: - return HttpResponseRedirect('/accounts/upload-document') + return HttpResponseRedirect('/2013/accounts/upload-document') # User Logout View def user_logout(request): @@ -49,7 +49,7 @@ def user_register(request): form = UserRegisterForm(request.POST) if form.is_valid: form.save() - return HttpResponseRedirect('/accounts/upload-document') + return HttpResponseRedirect('/2013/accounts/upload-document') else: form = UserRegisterForm() context = {} @@ -57,7 +57,7 @@ def user_register(request): context['form'] = form return render_to_response('register.html', context) else: - return HttpResponseRedirect('/accounts/upload-document') + return HttpResponseRedirect('/2013/accounts/upload-document') # User Profile View def user_profile(request): @@ -67,7 +67,7 @@ def user_profile(request): context['form'] = UserProfileForm(instance=request.user) return render_to_response('profile.html', context) else: - return HttpResponseRedirect('/accounts/login?next=/accounts/profile') + return HttpResponseRedirect('/2013/accounts/login?next=/2013/accounts/profile') # Document Upload View @login_required @@ -92,8 +92,3 @@ def upload_document(request): context.update(csrf(request)) context['form'] = DocumentUploadForm() return render_to_response('upload-document.html', context) - - - - - |