fixed template path and deleted settings.py as it was no longer need
changed accounts/signup.html to accounts/registration.html
This commit is contained in:
parent
d8853cee1c
commit
6030bd5949
3 changed files with 2 additions and 10 deletions
|
|
@ -14,7 +14,7 @@ def signup(request):
|
|||
user.email = form.cleaned_data.get('email')
|
||||
login(request, user)
|
||||
return redirect('/')
|
||||
return render(request, 'signup.html', {'form': form})
|
||||
return render(request, 'accounts/registration.html', {'form': form})
|
||||
else:
|
||||
form = RegistrationForm()
|
||||
return render(request, 'signup.html', {'form': form})
|
||||
return render(request, 'accounts/registration.html', {'form': form})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue