[Answered ]-Django perform actions after oauth callback

1👍

Sorry I can’t comment bc of under 50 reputation but i’ll remove this as soon as you respond. A few things I have to ask to try to help,

  • Have you installed and included django-social (or whichever oauth library you’re using) in main urls.py?
  • The LOGIN_REDIRECT_URL is supposed to be the route you redirect users after they login so that would usually be the home route or something similar. Was that your intent?
  • the checkouauth function is pretty good but you can run it almost anywhere you don’t necessarily need a route just for that.

Leave a comment