diff --git a/accounts/settings.py b/accounts/settings.py deleted file mode 100644 index 16e4aa7..0000000 --- a/accounts/settings.py +++ /dev/null @@ -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, - }, -] diff --git a/accounts/templates/signup.html b/accounts/templates/accounts/registration.html similarity index 100% rename from accounts/templates/signup.html rename to accounts/templates/accounts/registration.html diff --git a/accounts/views.py b/accounts/views.py index e628198..df26fd4 100644 --- a/accounts/views.py +++ b/accounts/views.py @@ -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})