Using Django middleware with web and mobile app

8 views
Skip to first unread message

lakshitha kumara

unread,
Nov 12, 2018, 8:56:18 PM11/12/18
to Django users
Hello Guys,

I'm developing a mobile app and website with one Django backend. all web browser(mobile browser included) using session auth and mobile app using Rest API with OAuth 2 authentications.  I would like to know the best way to handle Django middleware with web and mobile app.

For example, there are using verification middleware. currently, I'm trying to do if user not verifies then redirect to the verification page but this method hard to handle mobile app.i cant check mobile device method also because of mobile also behaviour like a web browser.

one solution is using custom Django decorator 

Is there are any other solution for this method?

Thanks




Reply all
Reply to author
Forward
0 new messages