Wednesday, July 1, 2015

Re: Diable basic auth on some pages

I see. Thanks for the replies, really appreciate your help :)

Cheers,
Cherie

On Wednesday, July 1, 2015 at 1:47:26 PM UTC+1, monoBOT monoBOT wrote:
No, if that permission is applied to the whole application.

But you can aply the permission per view ... just delete that configuration in the settings file and manually apply on the views you want to.

2015-07-01 11:03 GMT+01:00 Cherie Pun <cherie...@gmail.com>:
Yes it is, would it be possible to disable it for a particular page?

Cheers,
Cherie

On Wednesday, July 1, 2015 at 10:15:57 AM UTC+1, monoBOT monoBOT wrote:

2015-07-01 8:51 GMT+01:00 Cherie Pun <cherie...@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...@googlegroups.com.
To post to this group, send email to django...@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/cef52288-e081-4243-b9ec-a385b9363ec8%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
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/42fd5c8a-62e7-4f5e-b704-e9cafaeb2424%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment