Tasks can circumvent login: admin restrictions, however users.is_current_user_admin() will still return false, because technically there is no current user.
Using Django-Nerel should not stop you from protecting your tasks with app.yaml. Just add a secure handler above your Django catch-all:
handlers: - url: /tasks/.+ script: main.py login: admin - url: .* script: main.py
Any URLs starting with / tasks / will be accessible to the task queue and not accessible to visitors who are not administrators, without changing the routes.
source share