Prevent login at app (TAG=App Development)

12 views
Skip to first unread message

alansnow21

unread,
Sep 25, 2015, 9:24:30 AM9/25/15
to Tethys Platform
Hello All,

Is there a recommended way to prevent users from accessing your app? I noticed that you cannot access the apps page without logging in. However, this does not prevent users from getting to your app if they have a url.

Thanks!

alansnow21

unread,
Sep 25, 2015, 9:32:07 AM9/25/15
to Tethys Platform

swainn

unread,
Nov 4, 2015, 2:20:19 PM11/4/15
to Tethys Platform
Yup. That is the way to do it. Use the login_required() decorator on your controller (i.e.: django view). There is also a permission_required() variant that can be used to selectively prevent viewing.
Reply all
Reply to author
Forward
0 new messages