Skip to content
Tuto Django logo
Tuto Django (2022-05-25 10H (Europe/Paris)) Django SQL tips
Type to start searching
Tuto Django
  • Index
  • Awsome Django
  • Tuto HTMX
  • Tuto HTTP
  • Tuto devops
  • Django tips
Tuto Django
  • Django news
  • News
  • Django architecture
  • DEPs
  • Installation
  • Doc
  • Django people
  • Community
  • Django performances
  • Tests
  • Django tips
    • Aggregation with filter (Django 2.0+) by Haki Benita
    • Use of dataclass
    • debug
    • django_extensions
    • QuerySet Results as namedtuple (Django 2.0+)
    • save(update_fields=[“field_name”])
    • Django SQL tips
      • Show Source
      • Displaying SQL commands in your terminal
      • connection.queries (only available if DEBUG is True)
      • Utilisation de QuerySet.query (str(query))
    • Understand Group by in Django with SQL, Django QuerySets and SQL side by side by Haki Benita
    • Django URL resolving
  • Tools
  • Django versions
  • Versions
  • Meta informations
  • Meta doc
  • Show Source

Django SQL tips ¶

  • Displaying SQL commands in your terminal
  • connection.queries (only available if DEBUG is True)
  • Utilisation de QuerySet.query (str(query))
    • Example
Previous save(update_fields=[“field_name”])
Next Displaying SQL commands in your terminal
© Copyright 2018-2022, DevOps people Built with sphinx 4.5.0 Python 3.10.4.
Last updated on May 25, 2022.
Created using Sphinx 4.5.0. and Material for Sphinx