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

2024-02-20 Thread ABDUL HAFEEZ
much appreciated


On Tuesday, February 20, 2024 at 7:55:47 AM UTC+5 Ryan Nowakowski wrote:

> 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/80a349f5-832d-43bc-8496-920621ece825n%40googlegroups.com.


how to display group and create user permission in templates?

2024-02-19 Thread ABDUL HAFEEZ
Hell all how to display *createsuperuser *and there permission in *templates 
*instead of admin dashboard 

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f37cffcd-b425-466b-b247-39bac00a1809n%40googlegroups.com.


Re: counting issue i use mongodb why show always 0

2024-02-19 Thread ABDUL HAFEEZ
can you show model notification?

On Monday, February 19, 2024 at 2:30:14 PM UTC+5 Armaan Alam wrote:

> queryset = Notification.objects.filter(is_seen__in=[False]).count()
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c5f34dc1-7758-4a10-ae6a-1bf62595e367n%40googlegroups.com.


login with token instead of password

2024-01-16 Thread ABDUL HAFEEZ
example: 
I have a model with fields username and password 
when users create account  there credentials saved in db next I want that 
*instead 
of login with password I want create token *so he can login with token not 
password

what should I do
please provide me logic steps if someone have done already

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e43d49a3-e950-4396-9f90-3b1cd6f7af0an%40googlegroups.com.