简体   繁体   中英

Django, Run fucntion after the user login / Register

Once a user registers on my site, I want run a function and after a user login I want to be able to run another function.

I want to know is anyway to do this apart from after the user logins redirects them to a view and once ive done what ive wanted redirect them again Or is their a way i can overwrite the django register and login classes.

您可以使用框架中的Auth信号

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM