Saturday, December 24, 2022

Re: How to allow user to delete their own profile after login with their default id.

Well it looks like you have a good start. What, in particular, isn't working? It would help if you can post the corrected code and any error messages/tracebacks.

On December 24, 2022 9:23:32 AM CST, Manjusha <manjushakatkhede96@gmail.com> wrote:
want to know how to allow user to delete the created profile with default id of the user.

On Saturday, December 24, 2022 at 8:52:32 PM UTC+5:30 Manjusha wrote:
that incorrect picture


On Saturday, December 24, 2022 at 8:51:56 PM UTC+5:30 Manjusha wrote:
actually the code I have written it is for function based view but it not working that's why I am trying to do with generic editing views sorry for that 

On Saturday, December 24, 2022 at 8:45:05 PM UTC+5:30 Ryan Nowakowski wrote:
You're using a class-based view here but your code looks like it's supposed to be for a function based view. Which style do you want to use?


On December 24, 2022 8:13:09 AM CST, Manjusha <manjushak...@gmail.com> wrote:
Hi, I have created authentication system in Django. Anyone just tell me how to allow user to delete the created profile with default id of the user.Screenshot 2022-12-24 193133.png. I I am using built-in  User authentication libraries for this purpose and haven't created database model for the user. But the function (the commented function under delete_account) that I have created it is not deleting the user.
Now I am trying to delete user profile using generic editing views  of Django.
Anyone tell me how to allow user to delete the created profile with default id of the user.

No comments:

Post a Comment