Hi,

You don't have to use one or the other. You can use both authentication 
mechanisms. You would just list each authentication mechanism backend in 
your settings.py file. So, what would happen is the authentication 
framework will loop through each of the backends and if one backend fails 
than it moves on to the next one. I hope that helps.

Chris

On Tuesday, March 8, 2016 at 5:59:51 AM UTC-5, nikhil...@gmail.com wrote:
>
> I m also working on SPA with angular.js. One problem I have is regarding 
> authentication. 
>
> We have currently mixture of angular.js and html pages served by django 
> but our new version will be SPA.
> Till now our project was using session authentication (web) & token 
> authentication (mobile). 
>
> I was trying to get password related api on REST.While integrating 
> https://github.com/Tivix/django-rest-auth it seems that in SPA we have to 
> use token authentication on web.
>
> If I allow only token authentication on web + mobile then,
> Will token authentication allow us to serve partial templates? Our 
> template are currently served by django.
>
> -Nikhil
>
> On Monday, 7 March 2016 19:57:06 UTC+5:30, tizonzon wrote:
>>
>> Django Rest Framework. A powerful framework to build REST API on top of 
>> Django.
>>
>> Here's the link http://www.django-rest-framework.org/
>>
>> On Mon, Mar 7, 2016 at 9:19 AM, Bob Gailer <bga...@gmail.com> wrote:
>>
>>>
>>> On Mar 7, 2016 7:04 AM, "Avraham Serour" <tov...@gmail.com> wrote:
>>> >
>>> >  DRF 
>>> I'll bite - what is DRF? Google does not help with that.
>>>
>>> -- 
>>> 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 https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/CAP1rxO7AxoUPEpw85at7dRmAuRWL8FTZAok9-dkO24%3Dh2M7KdA%40mail.gmail.com
>>>  
>>> <https://groups.google.com/d/msgid/django-users/CAP1rxO7AxoUPEpw85at7dRmAuRWL8FTZAok9-dkO24%3Dh2M7KdA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> -- 
>>
>>
>> *Adolphe CHER-AIME*
>>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f8e5d785-954e-42c2-bf6c-d487992ab1ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to