I have dumped the User model on one db using dumpdata. I have a single
json fixture file with one record (see below). When I run the loadata
I get the error below. I use ptyhon 2.5 with psycopg2 on macOSX. I
have tested on Ubuntu and I get a similar error. Is it a bug?

Installed 1 object(s) from 1 fixture(s)
Resetting sequences
Traceback (most recent call last):
  File "manage.py", line 15, in <module>
    execute_manager(settings)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/django/core/management.py", line 1669, in
execute_manager
    execute_from_command_line(action_mapping, argv)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/django/core/management.py", line 1583, in
execute_from_command_line
    action_mapping[action](args[1:], int(options.verbosity))
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/django/core/management.py", line 1413, in
load_data
    cursor.execute(line)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/django/db/backends/util.py", line 12, in
execute
    return self.cursor.execute(sql, params)
psycopg2.ProgrammingError: syntax error at or near "
INE 1: SELECT setval('auth_user_id_seq', (...

Ubuntu:
    return self.cursor.execute(sql, params)
psycopg2.ProgrammingError: syntax error at or near "t character 1

        ^
????

Data:
[
  {
    "pk": "1",
    "model": "auth.user",
    "fields": {
      "username": "admin",
      "first_name": "",
      "last_name": "",
      "is_active": true,
      "is_superuser": true,
      "is_staff": true,
      "last_login": "2007-04-26 22:05:47",
      "groups": [],
      "user_permissions": [],
      "password":
"sha1$2dc30$459d0391f78b0f8012ce4311d075e10fde50e288",
      "email": "[EMAIL PROTECTED]",
      "date_joined": "2007-04-26 22:05:03"
    }
  }
]


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to