I have created user profiles for the user and already added
AUTH_PROFILE_MODULE = 'app.ModelName'
But when the user successfully logs in, he/she are redirected to /accounts/profile/ by default.
How to change this? I would like them to go /profile/ and have created a view for them.
def Profile(request):
'''
profile view
'''
return render(request,'profile.html')
Change the value of LOGIN_REDIRECT_URL in your settings.py.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With