Re: How to change the default username to email, in DRF obtain token login

2022-08-11 Thread M Adnan
try this I hope this will help you On Fri, Aug 12, 2022 at 9:19 AM M Adnan wrote: > email = request.data.get('email').lower( > ).strip() if 'email' in request.data else None > password = request.data['password'] if 'password' in request.data else > None > if not email or not pas

Re: How to change the default username to email, in DRF obtain token login

2022-08-11 Thread M Adnan
email = request.data.get('email').lower( ).strip() if 'email' in request.data else None password = request.data['password'] if 'password' in request.data else None if not email or not password: return Response({"success": False, 'response': {'message': 'Invalid data.' }},

Re: Blog application with django

2022-07-26 Thread M Adnan
You can share your number with me I will contact you if you are facing any problem contact with me On Tue, 26 Jul 2022, 9:05 pm M Adnan, wrote: > I am from Pakistan > > On Tue, 26 Jul 2022, 9:04 pm M Adnan, wrote: > >> I shared my Whatsapp number with you plz con

Re: Blog application with django

2022-07-26 Thread M Adnan
I am from Pakistan On Tue, 26 Jul 2022, 9:04 pm M Adnan, wrote: > I shared my Whatsapp number with you plz contact on Whatsapp I will > discuss in detail on Whatsapp > > On Tue, 26 Jul 2022, 9:00 pm MAHESH KUMAR, > wrote: > >> please tell me how much taken >> >

Re: Blog application with django

2022-07-26 Thread M Adnan
I shared my Whatsapp number with you plz contact on Whatsapp I will discuss in detail on Whatsapp On Tue, 26 Jul 2022, 9:00 pm MAHESH KUMAR, wrote: > please tell me how much taken > > > On Tue, Jul 26, 2022 at 9:24 PM M Adnan wrote: > >> This depends on your budget >>

Re: Blog application with django

2022-07-26 Thread M Adnan
03067710205 my Whatsapp number you can contact here On Tue, 26 Jul 2022, 8:54 pm M Adnan, wrote: > This depends on your budget > > On Tue, 26 Jul 2022, 8:52 pm MAHESH KUMAR, > wrote: > >> yes ok how much >> >> >> On Tue, Jul 26, 2022 at 9:14 PM M Adnan

Re: Blog application with django

2022-07-26 Thread M Adnan
This depends on your budget On Tue, 26 Jul 2022, 8:52 pm MAHESH KUMAR, wrote: > yes ok how much > > > On Tue, Jul 26, 2022 at 9:14 PM M Adnan wrote: > >> I can help you if is paid, I worked it long time as in given link >> beta.youonline.online >> >> On

Re: Blog application with django

2022-07-26 Thread M Adnan
I can help you if is paid, I worked it long time as in given link beta.youonline.online On Tue, 26 Jul 2022, 8:34 pm MAHESH KUMAR, wrote: > Hi All > > > https://www.health.harvard.edu/mind-and-mood/relaxation-techniques-breath-control-helps-quell-errant-stress-response > > I want this type blog

NOT NULL constraint failed: myapi_information.owner_id

2021-11-24 Thread M Adnan
class InformationSerializer(serializers.ModelSerializer): owner=serializers.StringRelatedField(read_only=True) class Meta: model=Information fields=['id', 'owner', 'title', 'content', 'created_at'] class RegisterSerializer(serializers.ModelSerializer): class Meta: