Hi guys! I'm having troubles to load fixtures data to the database, first of all I try to dump the data:
./manage dumpdata noticias > noticias.json Then I try clear the database for the "noticias" (news) application and try to load the data: ... $ ./manage.py loaddata noticias.json Loading 'noticias' fixtures... Installing json fixture 'noticias' from absolute path. Installed 2 object(s) from 1 fixture(s) Traceback (most recent call last): File "./manage.py", line 14, in ? execute_manager(settings) File "/usr/lib/python2.4/site-packages/django/core/management.py", line 1669, in execute_manager File "/usr/lib/python2.4/site-packages/django/core/management.py", line 1583, in execute_from_command_line File "/usr/lib/python2.4/site-packages/django/core/management.py", line 1413, in load_data File "/usr/lib/python2.4/site-packages/django/db/backends/util.py", line 12, in execute File "/usr/lib/python2.4/site-packages/django/db/backends/postgresql/ base.py", line 43, in execute psycopg.ProgrammingError: ERRO: erro de sintaxe em ou próximo a "t character 1 SELECT setval('noticias_noticia_id_seq', (SELECT max("id") FROM "noticias_noticia")); $ ... Translating the error: postgresql tells me that there is a syntax error next or at character 1, if I try the erroneous line in the psql console it works without errors, I think maybe is the lack of a ";" on a previous instruction but I just supposing :) Did someone get such error too? Is it a problem with my instalation? I'm using postgresql 8.1.8 and the last svn checkout of django. Thanks in advance! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---