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
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
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.


[1] https://github.com/django/django/blob/a684d73fc9ad94bbc535385d8b1d7c05ea06702f/django/contrib/auth/models.py

ABDUL HAFEEZ

unread,
Feb 20, 2024, 3:15:54 PM2/20/24
to Django users
much appreciated
Reply all
Reply to author
Forward
0 new messages