Re: Problems in Django login authentication

2023-07-29 Thread Mohammad Ehsan Ansari
First extend abstract user model or abstract base user model in your user model and after that define auth.model in settings.py hope its workSent from my iPhoneOn 30-Jul-2023, at 10:45 AM, Abdulrahman Abbas wrote:Can you login with superuser?On Sun, Jul 30, 2023, 02:32 Mh Limon

Re: Django call_command from Admin

2022-10-21 Thread Mohammad Ehsan Ansari
Please refer the signal concept in django you will get how to implement it On Thu, 20 Oct, 2022, 9:36 pm Aziz Mek, wrote: > Hi All, > > I was wondering if you have come across the following: > > I have a field in the model that's empty, when the user fills it up and > clicks Save, it > should t

Re: Not avle to login with google in my website

2022-09-25 Thread Mohammad Ehsan Ansari
Add into allowed origin On Fri, 23 Sep, 2022, 7:20 pm Rajesh Kumar, wrote: > Hi All, > I have integrated the social_django package for social logins like google > and Fb ...etc. > But It's working in localhost fine but after deployed in AWS ec2 with > docker It's not working > Authorization Erro

Re: DRF and React - request.user is "Anonymous user"

2022-09-19 Thread Mohammad Ehsan Ansari
yes you need On Tue, 20 Sept 2022 at 09:49, Jackson Patrick wrote: > Do i need to pass token in headers? > > On Tue, 20 Sep, 2022, 9:44 am Mohammad Ehsan Ansari, > wrote: > >> make sure you have listed auth as jwt and added permission class for >> authentication &g

Re: DRF and React - request.user is "Anonymous user"

2022-09-19 Thread Mohammad Ehsan Ansari
make sure you have listed auth as jwt and added permission class for authentication On Monday, 12 September 2022 at 09:52:22 UTC+5:30 jacks...@gmail.com wrote: > I have used simple JWT for authentication and i have successfully logged > in and am getting tokens also. But when i do a request.us

Re: session id attribute error

2022-09-19 Thread Mohammad Ehsan Ansari
Hi SessionStore is a model class? if yes you can use pk instant of id On Monday, 19 September 2022 at 22:48:02 UTC+5:30 aashishk...@gmail.com wrote: > Do this > > request.session.get(‘id’) > > On Mon, 19 Sep 2022 at 1:30 PM, shiva singh wrote: > >> hello everyone please help me how can solve