Re: Authorization not working on production server

2018-12-07 Thread Sidnei Pereira
Did you log in? Em sexta-feira, 7 de dezembro de 2018 09:21:51 UTC-2, Akash utreja escreveu: > > Hi, > I am building authorization in django framework using python.. The problem > is that my code is working fine on local server but when I run the same in > production it returns "Anonymous User"

Authorization not working on production server

2018-12-07 Thread Akash utreja
Hi, I am building authorization in django framework using python.. The problem is that my code is working fine on local server but when I run the same in production it returns "Anonymous User" Am I doing it right? if request.user.has_perm('auth.access_admin') ""whole code"" else: return