how to display group and create user permission in templates?
52 views
Skip to first unread message
ABDUL HAFEEZ
unread,
Feb 19, 2024, 10:16:30 AM2/19/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Hell all how to display createsuperuser and there permission in templates instead of admin dashboard
Ryan Nowakowski
unread,
Feb 20, 2024, 2:55:47 AM2/20/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
On Mon, Feb 19, 2024 at 02:16:29AM -0800, ABDUL HAFEEZ wrote:
> Hell all how to display *createsuperuser *and there permission in *templates
> *instead of admin dashboard
Users and permissions are just normal Django models[1]. You can create
your own view and add those objects to the template context then render
the template just like you would for any other Django view.