hovel/imagestore — Issue #1: integrate in django cms
Author: nlaurance
Created: 2012-02-27 19:06:26+00:00
State: open

I did what's written here

http://imagestore.readthedocs.org/en/latest/djangocms.html

then

python manage.py syncdb

Not synced (use migrations):
- cms
...
- imagestore.imagestore_cms
(use ./manage.py migrate to migrate these)

python manage.py migrate

Running migrations for imagestore_cms:
- Migrating forwards to 0005_auto__add_field_imagestorealbumcarousel_template_file.
> imagestore_cms:0001_initial
DEBUG:south:south execute "CREATE TABLE "cmsplugin_imagestorealbumptr" ("cmsplugin_ptr_id" integer NOT NULL PRIMARY KEY, "album_id" integer NOT NULL);" with params "[]"
DEBUG:south:south execute "ALTER TABLE "cmsplugin_imagestorealbumptr" ADD CONSTRAINT "cmsplugin_ptr_id_refs_id_645b7476" FOREIGN KEY ("cmsplugin_ptr_id") REFERENCES "cms_cmsplugin" ("id") DEFERRABLE INITIALLY DEFERRED;" with params "[]"
DEBUG:south:south execute "ALTER TABLE "cmsplugin_imagestorealbumptr" ADD CONSTRAINT "album_id_refs_id_58e4fb07" FOREIGN KEY ("album_id") REFERENCES "imagestore_album" ("id") DEFERRABLE INITIALLY DEFERRED;" with params "[]"
Traceback (most recent call last):
File "manage.py", line 34, in
execute_from_command_line()
File "/home/nlaurance/django/lib/python2.7/site-packages/django/core/management/__init__.py", line 429, in execute_from_command_line
utility.execute()
File "/home/nlaurance/django/lib/python2.7/site-packages/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/nlaurance/django/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/home/nlaurance/django/lib/python2.7/site-packages/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/home/nlaurance/django/lib/python2.7/site-packages/south/management/commands/migrate.py", line 105, in handle
ignore_ghosts = ignore_ghosts,
File "/home/nlaurance/django/lib/python2.7/site-packages/south/migration/__init__.py", line 191, in migrate_app
success = migrator.migrate_many(target, workplan, database)
File "/home/nlaurance/django/lib/python2.7/site-packages/south/migration/migrators.py", line 221, in migrate_many
result = migrator.__class__.migrate_many(migrator, target, migrations, database)
File "/home/nlaurance/django/lib/python2.7/site-packages/south/migration/migrators.py", line 292, in migrate_many
result = self.migrate(migration, database)
File "/home/nlaurance/django/lib/python2.7/site-packages/south/migration/migrators.py", line 125, in migrate
result = self.run(migration)
File "/home/nlaurance/django/lib/python2.7/site-packages/south/migration/migrators.py", line 99, in run
return self.run_migration(migration)
File "/home/nlaurance/django/lib/python2.7/site-packages/south/migration/migrators.py", line 82, in run_migration
south.db.db.execute_deferred_sql()
File "/home/nlaurance/django/lib/python2.7/site-packages/south/db/generic.py", line 184, in execute_deferred_sql
self.execute(sql)
File "/home/nlaurance/django/lib/python2.7/site-packages/south/db/generic.py", line 150, in execute
cursor.execute(sql, params)
File "/home/nlaurance/django/lib/python2.7/site-packages/django/db/backends/util.py", line 34, in execute
return self.cursor.execute(sql, params)
File "/home/nlaurance/django/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 44, in execute
return self.cursor.execute(query, args)
django.db.utils.DatabaseError: relation "imagestore_album" does not exist

....
any suggestion ?