Skip to content

Commit

Permalink
Post , like migration
Browse files Browse the repository at this point in the history
  • Loading branch information
ZEZE1020 committed Jan 13, 2025
1 parent 25c4777 commit 28047b1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion accounts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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)
Expand Down
Binary file modified social_media_api/__pycache__/settings.cpython-313.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion social_media_api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']

Expand Down

0 comments on commit 28047b1

Please sign in to comment.