Hi,
I've come across an issue trying to loaddata into my database, and am
wondering if anyone else has come across this too? and how to go
about fixing it.
I have Apache2.2.4, mod_python3.3.1, Python-2.5.1, postgresql-8.2.4,
psycopg2-2.0.5.1 installed.
Please let me know if you require any more information.
This is the process i followed:
./manage.py dumpdata --format=json Guide > guide.json
[Clear database]
./manage.py syncdb
./manage.py loaddata guide.json
The following is the error I receive:
Loading 'guide' fixtures...
Installing json fixture 'guide' from absolute path.
Installed 140 object(s) from 1 fixture(s)
Traceback (most recent call last):
File "./manage.py", line 11, in <module>
execute_manager(settings)
File "/opt/python/lib/python2.5/site-packages/django/core/
management.py", line 1674, in execute_manager
execute_from_command_line(action_mapping, argv)
File "/opt/python/lib/python2.5/site-packages/django/core/
management.py", line 1588, in execute_from_command_line
action_mapping[action](args[1:], int(options.verbosity))
File "/opt/python/lib/python2.5/site-packages/django/core/
management.py", line 1418, in load_data
cursor.execute(line)
File "/opt/python/lib/python2.5/site-packages/django/db/backends/
util.py", line 12, in execute
return self.cursor.execute(sql, params)
File "/opt/python/lib/python2.5/site-packages/django/db/backends/
postgresql/base.py", line 44, in execute
return self.cursor.execute(sql, [smart_basestring(p,
self.charset) for p in params])
psycopg.ProgrammingError: ERROR: relation "guide_venuetype_id_seq"
does not exist
SELECT setval('Guide_venuetype_id_seq', (SELECT max("id") FROM
"Guide_venuetype"));
Thanks in advance,
Mark.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---