Skip to content

Instantly share code, notes, and snippets.

@rockyburt
Created June 1, 2012 15:31
Show Gist options
  • Save rockyburt/2852979 to your computer and use it in GitHub Desktop.
Save rockyburt/2852979 to your computer and use it in GitHub Desktop.
(venv-appsembler)rocky@xps15z:~/dev/envs/jazkarta/appsembler/git/appsembler$ ./appsembler/manage.py syncdb --noinput
./appsembler/manage.py syncdb --noinput
Appsembler config:
django-settings: N/A
Debug Mode: True
Database:
ENGINE: django.db.backends.postgresql_psycopg2
HOST: localhost
NAME: appsembler
PASSWORD: appsembler
PORT: 5432
USER: appsembler
INFO patches Monkey patching:
INFO patches -- apply_social_auth_user_patch() - Fix social-auth so that it honours request.user.
INFO patches Monkey patching:
INFO patches -- apply_social_auth_user_patch() - Fix social-auth so that it honours request.user.
Syncing...
Creating tables ...
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_user_permissions
Creating table auth_user_groups
Creating table auth_user
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table south_migrationhistory
Creating table social_auth_usersocialauth
Creating table social_auth_nonce
Creating table social_auth_association
Creating table djkombu_queue
Creating table djkombu_message
Creating table invitation_invitationkey
Creating table invitation_invitationuser
Creating table registration_registrationprofile
Creating table django_admin_log
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)
Synced:
> django.contrib.auth
> django.contrib.contenttypes
> django.contrib.sessions
> django.contrib.sites
> django.contrib.messages
> django.contrib.staticfiles
> south
> social_auth
> seacucumber
> djkombu
> invitation
> registration
> django.contrib.admin
> django_extensions
> debug_toolbar
> django.contrib.webdesign
Not synced (use migrations):
- tastypie
- djcelery
- captcha
- forms_builder.forms
- apps.repomgt
- apps.appstore
- apps.accounts
(use ./manage.py migrate to migrate these)
(venv-appsembler)rocky@xps15z:~/dev/envs/jazkarta/appsembler/git/appsembler$ ./appsembler/manage.py migrate
./appsembler/manage.py migrate
Appsembler config:
django-settings: N/A
Debug Mode: True
Database:
ENGINE: django.db.backends.postgresql_psycopg2
HOST: localhost
NAME: appsembler
PASSWORD: appsembler
PORT: 5432
USER: appsembler
INFO patches Monkey patching:
INFO patches -- apply_social_auth_user_patch() - Fix social-auth so that it honours request.user.
INFO patches Monkey patching:
INFO patches -- apply_social_auth_user_patch() - Fix social-auth so that it honours request.user.
Running migrations for tastypie:
- Migrating forwards to 0001_initial.
> tastypie:0001_initial
- Loading initial data for tastypie.
Installed 0 object(s) from 0 fixture(s)
Running migrations for djcelery:
- Migrating forwards to 0002_v25_changes.
> djcelery:0001_initial
> djcelery:0002_v25_changes
- Loading initial data for djcelery.
Installed 0 object(s) from 0 fixture(s)
Running migrations for captcha:
- Migrating forwards to 0001_initial.
> captcha:0001_initial
- Loading initial data for captcha.
Installed 0 object(s) from 0 fixture(s)
Running migrations for forms:
- Migrating forwards to 0002_auto__add_field_field_order.
> forms:0001_initial
> forms:0002_auto__add_field_field_order
- Loading initial data for forms.
Installed 0 object(s) from 0 fixture(s)
Running migrations for repomgt:
- Migrating forwards to 0001_initial.
> repomgt:0001_initial
- Loading initial data for repomgt.
Installed 0 object(s) from 0 fixture(s)
Running migrations for appstore:
- Migrating forwards to 0035_auto__add_field_deployedapp_bundle_uid.
> appstore:0001_initial
> appstore:0002_auto__add_field_applicationproject_slug__add_field_applicationproject_
Traceback (most recent call last):
File "./appsembler/manage.py", line 14, in <module>
execute_manager(settings)
File "/home/rocky/dev/envs/jazkarta/appsembler/venv-appsembler/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 459, in execute_manager
utility.execute()
File "/home/rocky/dev/envs/jazkarta/appsembler/venv-appsembler/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/rocky/dev/envs/jazkarta/appsembler/venv-appsembler/local/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
self.execute(*args, **options.__dict__)
File "/home/rocky/dev/envs/jazkarta/appsembler/venv-appsembler/local/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
output = self.handle(*args, **options)
File "/home/rocky/dev/envs/jazkarta/appsembler/venv-appsembler/local/lib/python2.7/site-packages/south/management/commands/migrate.py", line 107, in handle
ignore_ghosts = ignore_ghosts,
File "/home/rocky/dev/envs/jazkarta/appsembler/venv-appsembler/local/lib/python2.7/site-packages/south/migration/__init__.py", line 219, in migrate_app
success = migrator.migrate_many(target, workplan, database)
File "/home/rocky/dev/envs/jazkarta/appsembler/venv-appsembler/local/lib/python2.7/site-packages/south/migration/migrators.py", line 235, in migrate_many
result = migrator.__class__.migrate_many(migrator, target, migrations, database)
File "/home/rocky/dev/envs/jazkarta/appsembler/venv-appsembler/local/lib/python2.7/site-packages/south/migration/migrators.py", line 310, in migrate_many
result = self.migrate(migration, database)
File "/home/rocky/dev/envs/jazkarta/appsembler/venv-appsembler/local/lib/python2.7/site-packages/south/migration/migrators.py", line 133, in migrate
result = self.run(migration)
File "/home/rocky/dev/envs/jazkarta/appsembler/venv-appsembler/local/lib/python2.7/site-packages/south/migration/migrators.py", line 106, in run
dry_run.run_migration(migration)
File "/home/rocky/dev/envs/jazkarta/appsembler/venv-appsembler/local/lib/python2.7/site-packages/south/migration/migrators.py", line 191, in run_migration
self._run_migration(migration)
File "/home/rocky/dev/envs/jazkarta/appsembler/venv-appsembler/local/lib/python2.7/site-packages/south/migration/migrators.py", line 178, in _run_migration
raise exceptions.FailedDryRun(migration, sys.exc_info())
south.exceptions.FailedDryRun: ! Error found during dry run of '0002_auto__add_field_applicationproject_slug__add_field_applicationproject_'! Aborting.
Traceback (most recent call last):
File "/home/rocky/dev/envs/jazkarta/appsembler/venv-appsembler/local/lib/python2.7/site-packages/south/migration/migrators.py", line 175, in _run_migration
migration_function()
File "/home/rocky/dev/envs/jazkarta/appsembler/venv-appsembler/local/lib/python2.7/site-packages/south/migration/migrators.py", line 57, in <lambda>
return (lambda: direction(orm))
File "/home/rocky/Dropbox/dev/vcs/git/appsembler/appsembler/apps/appstore/migrations/0002_auto__add_field_applicationproject_slug__add_field_applicationproject_.py", line 16, in forwards
for ap in orm.ApplicationProject.objects.all():
File "/home/rocky/dev/envs/jazkarta/appsembler/venv-appsembler/local/lib/python2.7/site-packages/south/orm.py", line 395, in __getattr__
raise AttributeError("You are in a dry run, and cannot access the ORM.\nWrap ORM sections in 'if not db.dry_run:', or if the whole migration is only a data migration, set no_dry_run = True on the Migration class.")
AttributeError: You are in a dry run, and cannot access the ORM.
Wrap ORM sections in 'if not db.dry_run:', or if the whole migration is only a data migration, set no_dry_run = True on the Migration class.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment