diff --git a/accounts/views.py b/accounts/views.py index cac3191..54b928a 100644 --- a/accounts/views.py +++ b/accounts/views.py @@ -12,6 +12,11 @@ from .models import CustomUser, Follow, Post from .forms import CustomUserCreationForm, CustomUserChangeForm from django.shortcuts import render +from django.shortcuts import render + +def home(request): + return render(request, 'home.html') + def home(request): return render(request, 'home.html') @@ -66,7 +71,6 @@ def user_profile(request, user_id): } return render(request, 'accounts/profile.html', context) - def login_view(request): if request.method == 'POST': form = AuthenticationForm(data=request.POST) diff --git a/social_media_api/__pycache__/settings.cpython-313.pyc b/social_media_api/__pycache__/settings.cpython-313.pyc index 6d00b33..42cb256 100644 Binary files a/social_media_api/__pycache__/settings.cpython-313.pyc and b/social_media_api/__pycache__/settings.cpython-313.pyc differ diff --git a/social_media_api/settings.py b/social_media_api/settings.py index cfda8ca..3b3197f 100644 --- a/social_media_api/settings.py +++ b/social_media_api/settings.py @@ -29,7 +29,7 @@ SECRET_KEY = config('SECRET_KEY') # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = False +DEBUG = True ALLOWED_HOSTS = ['social-media-api-a5m3.onrender.com']