Skip to content
Snippets Groups Projects
Commit 4f049749 authored by Morris, Sophie E (UG - Comp Sci & Elec Eng)'s avatar Morris, Sophie E (UG - Comp Sci & Elec Eng)
Browse files

fixed an error on submitting contact

parent f9939b12
No related branches found
No related tags found
No related merge requests found
No preview for this file type
...@@ -6,7 +6,7 @@ def contact(request): ...@@ -6,7 +6,7 @@ def contact(request):
form = ContactForm(request.POST) form = ContactForm(request.POST)
if form.is_valid(): if form.is_valid():
form.save() form.save()
return redirect('success') return redirect('http://127.0.0.1:8001/register/welcome')
else: else:
form = ContactForm() form = ContactForm()
return render(request, 'contact/contactpage.html', {'form': form}) return render(request, 'contact/contactpage.html', {'form': form})
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment