Monday, February 19, 2024

Re: how to display group and create user permission in templates?

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

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/20240220025445.GC22725%40fattuba.com.

No comments:

Post a Comment