DateField is a string in model instance instead of datetime object

2021-08-29 Thread 1oglop1
Hello, I have a problem that DateField or DateTime fields are `str` instead of datetime objects after the model has been instantiated/created. But when the model is returned from the database it is a correct object. How can I prevent this? given: ``` class My(models.Model): dt_obj = mode

examples of django + neo4j projects

2021-08-29 Thread CE
Hi Django users, I'm looking for examples of Django + Neo4j projects. Any examples / projects / blog posts from the past ~5 years anyone might remember would be appreciated. Here's an incomplete list of what I have found so far Description of https://cementjob.com/ https://medium.com/@webch

Re: Can you help me sharing link documentation to learn django ?

2021-08-29 Thread Stijn Verholen
I think he's asking for help in using Django as an ORM tool, not a web framework. If that's the case: do a Google search for 'standalone django' or use sqlalchemy. Best regards, Stijn Verholen On Sat, 28 Aug 2021, 22:49 Kasper Laudrup, wrote: > On 28/08/2021 01.55, Thuan Nguyen Thi Bích wrote:

Re: DateField is a string in model instance instead of datetime object

2021-08-29 Thread Sebastian Jung
Hello, I think this behaviour is absolut normal. When you create on a databasesystem a datefield and make a insert with this field with string '2021-08-21' then databasesystem convert this string automatical into date... So i think this has nothing to do with python/django and this behaviour i wo