Article From:https://segmentfault.com/q/1010000011704602
Question:

MySQLThe chart is shown in figure, and then the sum of the data (count) of each day is counted by the date function in MySQL.
But the query set API provided by Django doesn’t seem to have an interface. How can I call the Django query set API to implement the SQL statement shown in the diagram, or is it the same as the statement?

Answer 0:

If your model is defined as model. DateTimeField, then the queried object has a value of type datetime

Similar Posts:

    None Found

Leave a Reply

Your email address will not be published. Required fields are marked *