From 74b8df5840513c1df669ea05f670e5164b3440f3 Mon Sep 17 00:00:00 2001 From: parth Date: Tue, 27 Mar 2012 14:16:44 +0530 Subject: modified urls and views to make relative urls working --- allotter/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'allotter/views.py') diff --git a/allotter/views.py b/allotter/views.py index f4c83e5..93a1660 100644 --- a/allotter/views.py +++ b/allotter/views.py @@ -67,7 +67,7 @@ def submit_details(request, reg_no): if form.is_valid(): data = form.cleaned_data form.save() - return redirect("/allotter/apply/") + return HttpResponseRedirect(reverse('allotter.views.apply', args=(user.username,))) else: return render(request, 'allotter/details.html', {'form':form}) -- cgit