From 28047b10ca29211941f1ba054b09d090ac38b8dc Mon Sep 17 00:00:00 2001 From: ZEZE1020 Date: Mon, 13 Jan 2025 04:48:10 +0300 Subject: [PATCH] Post , like migration --- accounts/views.py | 6 +++++- .../__pycache__/settings.cpython-313.pyc | Bin 3950 -> 3950 bytes social_media_api/settings.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) 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 6d00b33dd851e2b0a1e6f5c3ccbd25f1c62e1fc1..42cb25672e08f8206ef4857c0976bb023b5c96ee 100644 GIT binary patch delta 84 zcmaDS_fC%YGcPX}0}!+pw4`5{$oof7phzNEut+jks7NYUxJWvfeX6vlW~ n;UbM-;ms!)&6yb8HnAi!PflWYW(?W9l--|=k$3Y~-bzLQ`P>&_ 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']