If i don't remove contrib from middleware, Csrf header will be missing and
that's a problem

On Tue, Apr 24, 2018, 9:02 PM Avraham Serour <tovm...@gmail.com> wrote:

> I wouldn't use two settings to only achieve this, you can add multiple
> auth classes which django will try in a loop.
>
> You can add the JWT and a custom class which can baseclass the
> login/password auth and only allow superusers to login
>
> On Tue, Apr 24, 2018 at 6:18 PM, Prakash D <cegprak...@gmail.com> wrote:
>
>> Hi I'm trying to port an existing application (which uses Django admin
>> portal) to JWT authentication system so I can support native mobile
>> clients.
>>
>> My proposed solution is having two manage.py files (will run on seaparate
>> port numbers) and two settings.py files which will have different url
>> routing. Is this the only way to do it?
>>
>>
>>
>> <https://lh3.googleusercontent.com/-XR3OG6gxkKs/Wt9JwPaijQI/AAAAAAAAN-4/USFoxhPp5rsFtu3jnmb1unrPi2CyMOR5wCLcBGAs/s1600/Routing%2Bchanges.png>
>>
>> --
>> 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/be19d2d1-d912-4780-a462-53d5e7da7595%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/be19d2d1-d912-4780-a462-53d5e7da7595%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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/CAFWa6tLXtmSYT%3D8pZhc9KhRh8Bf1W8UMqarknDyefWS3OErThQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAFWa6tLXtmSYT%3D8pZhc9KhRh8Bf1W8UMqarknDyefWS3OErThQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMnPyT%2BTCH9%2BszB%3Dc%3DxvQeHVS5SSktL8LhAMaewTERape-o%2Biw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to