Ask Your Question

Why can't I import fixtures from 'dump_forum' V 0.7.47?

asked 2012-12-18 15:40:52 -0500

mrB's avatar

updated 2012-12-18 15:42:22 -0500

Evgeny's avatar

I can't seem to import fixtures created by forum_dump.

To confirm this I created a new database with 1 user and 1 question.

I then:

$ python dump_forum

$ python flush

$ python load_forum test_dump_delete

WARNING!!! You are using a 'locmem' (local memory) caching backend,
which is OK for a low volume site running on a single-process server.
For a multi-process configuration it is neccessary to have a production
cache system, such as redis or memcached.

With local memory caching and multi-process setup you might intermittently
see outdated content on your site.

Traceback (most recent call last):  
  File "", line 11, in <module>  
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/", line 438, in execute_manager  
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/", line 379, in execute  
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/", line 191, in run_from_argv  
    self.execute(*args, **options.__dict__)  
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/", line 220, in execute  
    output = self.handle(*args, **options)  
  File "/Users/Bryan/work/askbot-discussion/askbot/management/commands/", line 16, in handle  
    management.call_command('loaddata', args[0])  
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/", line 166, in call_command  
    return klass.execute(*args, **defaults)  
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/", line 220, in execute  
    output = self.handle(*args, **options)  
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/commands/", line 223, in handle  
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/", line 142, in commit  
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/backends/", line 201, in commit  
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/", line 200, in _commit  
    return self.connection.commit()  
django.db.utils.IntegrityError: insert or update on table "askbot_groupmembership" violates foreign key constraint "authusergroups_ptr_id_refs_id_5cdfc23b7859c44e"  
DETAIL:  Key (authusergroups_ptr_id)=(1) is not present in table "auth_user_groups".
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-12-18 15:43:12 -0500

Evgeny's avatar

Please use plain database dump/restore for now until this bug is fixed.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-12-18 15:40:52 -0500

Seen: 202 times

Last updated: Dec 18 '12