Re: Can't use swagger in Django 4.0?

2022-03-04 Thread Sherif Adigun
You may need to show your urls.py to see what you are doing. On Friday, March 4, 2022 at 3:04:46 PM UTC+1 astro...@gmail.com wrote: > > hi everyone, > > After installing Django 4.0 and configuring swagger, 'TypeError: 'set' > object is not reversible' occurs. Is it possible that Django 4.0 can'

Re: model property optimize

2022-03-04 Thread Mariano Ruiz
The *count()* call generates a SQL query that will walk through all the table (or the index) to figure how many elements are, but you don't need that, you only need to know whether there is at least 1 row that matches the criteria, and stop there, so use *exists()* instead, that returns *True*

Re: Error : Circula import

2022-03-04 Thread Kasper Laudrup
On 04/03/2022 07.58, Jet Ezra wrote: But the link tells you the details and how to solve the problem. Anyway, I think you forgot to share the said screenshots. I can't find them. Also, when you are asking please, don't try to direct us how we should solve this problem. Just detail your problem