OverflowError: django signed integer is greater than maximum database fields that are relevant date wrong

Use the default database in sqlite3 django, there is a problem in pycharm the entry date information on the results of field

When saving directly as of the date into the interface selected stamp, and the error at the time of acquiring data


After the query (licking Gangster) only to find that the date is automatically converted to time stamp exceeds the maximum length limit date type (should be)

solution:

Direct copy a date in the past, save does not automatically translate into a timestamp type

Or a similar problem does not occur by adding ORM

 

Also found   with DateTimeField not report this error.

There are a lot of things do not make sense, do first record.

Guess you like

Origin www.cnblogs.com/Allen-Gao/p/11287083.html