C
C
Classik2021-01-16 21:38:36
Django
Classik, 2021-01-16 21:38:36

How to create a day model for a personal diary in Django?

I would like to make a semblance of a personal diary in Django. On the main screen, the days should be displayed in the form of a drop-down list, and in the list what happened on that day, I think to create two models, one for the note, the other for the day of the week. The question is how can I create a day, exactly at 0:00 or something else, more reasonably, please help with this. Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Classsik, 2021-01-17
@Classik

I solved the problem like this, remove the day model, and group by date using the regroup tag.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question