Skip to content

Tag: django

Django project without models and data base

It is possible to build a project in Django without models ? I have a views, templates(html), css and urls. That site is looking very good in a browser. It is a hairdressing salon website. Greetings Answer It is completely possible to create a Django project without any models. You only really need models if …

How to get data of Post.user not the logged in User

I am currently working on a blog project for learning purposes, I am trying to get the total number of posts made by a specific user. In my model I have set the User who makes a Post as Author. In the Post detail page I am trying to show the total number of Posts made by this specific author

Django-filter: count data

Does anybody knows how can I use count based on selected value using django_filters Error My Reference link views.py filters.py user_list.html I want to count all the list base from data I filtered Answer You’ll want the count of the resulting queryset, which you can get from the filter’s qs prope…