About 50 results
Open links in new tab
  1. How do I do a not equal in Django queryset filtering?

    Feb 22, 2017 · 174 the field=value syntax in queries is a shorthand for field__exact=value. That is to say that Django puts query operators on query fields in the identifiers. Django supports the …

  2. python - What is the difference between Django and Django Rest ...

    Django is the web development framework in python whereas the Django Rest Framework is the library used in Django to build Rest APIs. Django Rest Framework is especially designed to …

  3. python - How to check Django version - Stack Overflow

    Jun 24, 2011 · 815 Django 1.5 supports Python 2.6.5 and later. If you're under Linux and want to check the Python version you're using, run python -V from the command line. If you want to …

  4. Django - show loading message during long processing

    Here is another explanation on how to get a loading message for long loading Django views Views that do a lot of processing (e.g. complex queries with many objects, accessing 3rd party …

  5. How to do an OR filter in a Django query? - Stack Overflow

    Sep 26, 2024 · 506 I want to be able to list the items that either a user has added (they are listed as the creator) or the item has been approved. So I basically need to select: item.creator = …

  6. Django - makemigrations - No changes detected - Stack Overflow

    Mar 22, 2016 · I was trying to create migrations within an existing app using the makemigrations command but it outputs "No changes detected". Usually I create new apps using …

  7. Django: how to count SQL queries from a unit test?

    Django's unit test framework actually sets DEBUG to False when it runs, so no matter what you have in settings.py, you will not have anything populated in connection.queries in your unit test …

  8. python - Uninstall Django completely - Stack Overflow

    Jan 3, 2014 · I uninstalled django on my machine using pip uninstall Django. It says successfully uninstalled whereas when I see django version in python shell, it still gives the older version I …

  9. How to use if/else condition on Django Templates?

    How to use if/else condition on Django Templates? Asked 13 years, 4 months ago Modified 2 years, 10 months ago Viewed 256k times

  10. How to query Case-insensitive data in Django ORM?

    Jul 20, 2022 · How can I query/filter in Django and ignore the cases of my query-string? I've got something like and like to ignore the case of my_parameter: …