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
|
|
@ -1,8 +0,0 @@
|
|||
import os
|
||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
TEMPLATES = [
|
||||
{
|
||||
'DIRS': [os.path.join(BASE_DIR, 'photo21/accounts/templates')],
|
||||
'APP_DIRS': True,
|
||||
},
|
||||
]
|
||||
|
|
@ -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