How to retrieve all data blocks from database at a certain entry in Django?
<p>I am very sorry for this newbie question...
I have data stored in the database (mysql) as tuples.
These data look like <strong>(datetime, frequency, current)</strong> ... etc.</p>

<p>How to retrieve all data from database at a certain time?
for example, I want to get all the saved data at "2015-9-9 8:23:10" </p>

<p>can you show your model.</p>

<p>You can add created and updated fields to your model and query them to retrieve your data</p>

<pre><code>class Test(models.Model):
    created = models.DateTimeField(
        default=django.utils.timezone.now, blank=True)
    updated = models.DateTimeField(
        default=django.utils.timezone.now, blank=True)
</code></pre>

<p>you can query the Test model then using the time you want</p>

<pre><code>Test.objects.all(created=datetime.now())
</code></pre>

python mysql django