authenticationform django check if user exists code example
Example: check if the user is logged in django decorator
from django.contrib.auth.decorators import login_required
@login_required
def edit_user_profile(request):
from django.contrib.auth.decorators import login_required
@login_required
def edit_user_profile(request):