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

2022-12-24 Thread Manjusha
def delete_account(request): if request.method == "POST": email = request.POST.get('email') password = request.POST.get('pswd1') u = User.objects.filter(email=email).first() print(u) User.delete(u.id) messages.success(request,"Account i

Re: NEW BIE HERE HOW CAN I LEARN DJANGO FAST

2022-12-24 Thread Gerardo Palazuelos Guerrero
Hi, I also found helpful the following channel: https://www.youtube.com/playlist?list=PLbMO9c_jUD44i7AkA4gj1VSKvCFIf59fb have fun! -- Gerardo Palazuelos Guerrero On Sat, Dec 24, 2022 at 7:13 PM 'Kasper Laudrup' via Django users < django-users@googlegroups.com> wrote: > On 24/12/2022 14.03, Aay

Re: NEW BIE HERE HOW CAN I LEARN DJANGO FAST

2022-12-24 Thread 'Kasper Laudrup' via Django users
On 24/12/2022 14.03, Aayush Gurung wrote: Hey, I just want to know how you've learned django framework and what resources did you use. It would be great if anyone can suggest me some studying resources. Thank you. https://docs.djangoproject.com/en/4.1/intro/tutorial01/ Also, no need to SHOU

NEW BIE HERE HOW CAN I LEARN DJANGO FAST

2022-12-24 Thread Aayush Gurung
Hey, I just want to know how you've learned django framework and what resources did you use. It would be great if anyone can suggest me some studying resources. Thank you. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from thi

Re: CRUD using firebase

2022-12-24 Thread Eng Thanoon
hi follow this introduction: https://www.youtube.com/watch?v=DCaH4bQ4DxA any problem alert me On Tuesday, 20 December 2022 at 20:13:10 UTC+3 josedur...@gmail.com wrote: > i'm a newbie in this framework. I need information about how to create a > C

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

2022-12-24 Thread Eng Thanoon
*** views.py from rest_framework import generics,permissions class NotifyDestroy(generics.DestroyAPIView): """delete current user """ permission_classes=[permissions.IsAuthenticated] serializer_class=user_delete_ser queryset=User.objec

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

2022-12-24 Thread Eng Thanoon
i sent message before bot never being accept from admins , don't now why ??? On Saturday, 24 December 2022 at 20:21:07 UTC+3 Ryan Nowakowski wrote: > 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 >

my replies approved from admins

2022-12-24 Thread Eng Thanoon
i'v been sent two replies from more than 2 hours ago ( almost at 9:40 GMT) and never being posted right now anyone know why ??? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it,

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

2022-12-24 Thread rahul sharma
Delete_status=0 Add coloum in database table Like delete_status On Sat, Dec 24, 2022, 20:23 Manjusha 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

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

2022-12-24 Thread Manjusha
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 writt

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

2022-12-24 Thread Manjusha
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:4

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

2022-12-24 Thread Manjusha
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