This is the same problem as I found earlier and below steps will reproduce it and with an empty project (no log_entries etc, just 1 superuser) it is fixed by removing the subseconds.
Regards, Rob On Sep 16, 8:56 pm, Rob J Goedman <[EMAIL PROTECTED]> wrote: > Hi, > > Today's version shows 2 problems, the first problem is related to > date/time formats in fixtures, the 2nd to at least add forms, > e.g. add users. Both using the newform-admin branch. > > The 1st problem can be created by installing a brand new project, > creating an initial_data.json file and run ./manage syncdb again > (or ./manage loaddata initial_data.json): > > Robs-Intel:~/Projects/o2o/mcp rob$ ./manage.py syncdb > ... > Installing index for auth.Message model > Installing index for auth.Permission model > Installing index for admin.LogEntry model > Loading 'initial_data' fixtures... > Installing json fixture 'initial_data' from absolute path. > Problem installing fixture 'initial_data.json': [u'Enter a valid date/ > time in YYYY-MM-DD HH:MM format.'] > > Looking at the initial_data.json file I think it complains about > timestamps such as '2007-09-16 12:34:51.765432'. Removing the sub- > second parts fixes it, it accepts a :SS component. This happen in > user and some other fixture json records (e.g. log_entries). ... On Sep 17, 2007, at 7:21 AM, Tomasz Melcer wrote: > > On 17 Wrz, 15:16, "Russell Keith-Magee" <[EMAIL PROTECTED]> > wrote: >> We have a fairly extensive unit test suite around serialization >> formats; as a result, I'm not aware of any problems of this sort. >> >> Can you provide a minimal example that reproduces this problem? i.e., >> can you provide an example model and a JSON data fixture that >> can't be >> loaded? > Sure. > > The testcase (a bash script) is at http://dpaste.com/hold/19852/ > Run it by invoking: > DJANGO_LOC=path-to-django-working-copy ./testcase > And enter some data when asked by manage.py (answering "yes" to first > question). I couldn't make the script answer these questions > automatically, because manage.py is calling ioctls. The script will > make a project from scratch, using a temporary database in /tmp. > > My output is at http://dpaste.com/hold/19854/ > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---