|
Whoa. Spoke to soon on this one. Backing out the time zone info from MySQL allowed me to create a blog post and access the list in admin without the "Incorrect datetime value" error, but trying to change the publish_date field to an *earlier* date (a later date was ok.) produced: "Database returned an invalid value in QuerySet.dates(). Are time zone definitions and pytz installed?" Pytz was already installed and of course installing the time zone definitions simply gave "Incorrect datetime value" again when creating. I even got "Incorrect datetime value" on creation with USE_TZ = False. I simply can't get this configuration to work: Python 3.3.5 Django 1.6.5 MySQL Connector/Python 1.2.2 (Oracle's) with its mysql.connector.django backend MySQL 5.5.37 I saw a similar report at http://stackoverflow.com/questions/21351251/database-returned-an-invalid-value-in-queryset-dates. It was never resolved using MySQL - the poster switched to MariaDB 10. I've now switched to PostgreSQL 9.1.13 and it's working fine. It also solved the other problem I was having where bouncing the MySQL server required me to restart the web server. On 27/06/14 23:15, cercatrova2 wrote:
-- |
- [mezzanine-users] Incorrect datetime value: '%Y-%m-%d 00:00:00... cercatrova2
- [mezzanine-users] Re: Incorrect datetime value: '%Y-%m-%d... cercatrova2
- [mezzanine-users] Re: Incorrect datetime value: '%Y-%... cercatrova2
