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"
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
2 matches
Mail list logo