Setting ALLOWED_ACTIONS

51 views
Skip to first unread message

José Pinho

unread,
Jun 4, 2025, 7:26:45 AM6/4/25
to py4web
Hi all,

On my app's SETTINGS.PY :
    ...
    ALLOWED_ACTIONS = ["login", "logout", "profile"]
    ...

But I still see options 'Sign up' and 'Change Password', on my site.
Am I misunderstanding this setting ?

A.Pinho


jonatha...@whatho.net

unread,
Jun 4, 2025, 9:50:13 AM6/4/25
to py4web
I believe you also have to edit the auth.html template to only include in the menu the actions you have selected.

Good luck,
Jonathan

José Pinho

unread,
Jun 4, 2025, 12:17:17 PM6/4/25
to py4web
Hi Jonathan,

Yes, I did resort to change my LAYOUT.HTML (AUTH.HTML basically just extends it), but it seemed unnatural to do so, given that a setting existed, that's why i asked.
Thx

Dave S

unread,
Jul 26, 2025, 2:49:38 PM7/26/25
to py4web
On Wednesday, June 4, 2025 at 9:17:17 AM UTC-7 José Pinho wrote:
Hi Jonathan,

Yes, I did resort to change my LAYOUT.HTML (AUTH.HTML basically just extends it), but it seemed unnatural to do so, given that a setting existed, that's why i asked.
Thx


Does the setting change the error response?

/dps
Reply all
Reply to author
Forward
0 new messages