Wednesday, July 1, 2015

Re: Diable basic auth on some pages


2015-07-01 8:51 GMT+01:00 Cherie Pun <cherie.cy.pun@gmail.com>:

We are using 'deploy.middleware.basicauth.BasicAuthMiddleware' right now. If I remove that line, I will be able to access the api page. However if it's included, when I access the api page, even after I have typed in the username and password, the api page will show that I am not authenticated to view the page. I am using django_rest_framework by the way, maybe it's some sort of restriction on their side?

​Go check the settings.py to see if you have a permission setting for the whole application.



--
monoBOT
Visite mi sitio(Visit my site): monobotsoft.es/blog/

--
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, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BxOsGDQGKnBxYQ2SRZGv82wXT_fZd21RYJeV5y4Snh-NRkR3g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment