render is not working in another python file.

27 views
Skip to first unread message

Abhishek Surela

unread,
Sep 29, 2022, 5:50:36 AM9/29/22
to Django REST framework
I'm working on registration page and for basic validation like if user already registered, password is complex or not etc .. for that I've created a separate file and and if all checks completed I am trying to redirect but from the secondary python file redirect and even render is not working it just simply return me the same registration page but when I use redirect on the same views.py file redirect is working. That is a weird behavior? Or I am doing something wrong?

this is what i am doing: https://pastebin.com/HTL1BgFh
Reply all
Reply to author
Forward
0 new messages