Skip to content

Instantly share code, notes, and snippets.

@mekanix
Created August 4, 2017 13:38
Show Gist options
  • Save mekanix/87def62dfe38e266abcdeb0fe4af8d1e to your computer and use it in GitHub Desktop.
Save mekanix/87def62dfe38e266abcdeb0fe4af8d1e to your computer and use it in GitHub Desktop.
~/repos/geonode ♦ python manage.py migrate
Operations to perform:
Synchronize unmigrated apps: tasks, floppyforms, modeltranslation, django_extensions, djcelery, polymorphic, treebeard, corsheaders, django_forms_bootstrap, catalogue, humanize, geoserver, storages, mptt, friendlytagloader, staticfiles, metadataxsl, geoexplorer, sitemaps, proxy, gis, pinax_theme_bootstrap, pagination, autocomplete_light, messages, leaflet, api, social, security
Apply all migrations: dialogos, people, tastypie, agon_ratings, documents, actstream, sites, maps, contenttypes, announcements, user_messages, layers, sessions, guardian, auth, base, kombu_transport_django, groups, services, oauth2_provider, account, admin, upload, avatar, taggit
Synchronizing apps without migrations:
Creating tables...
Creating table celery_taskmeta
Creating table celery_tasksetmeta
Creating table djcelery_intervalschedule
Creating table djcelery_crontabschedule
Creating table djcelery_periodictasks
Creating table djcelery_periodictask
Creating table djcelery_workerstate
Creating table djcelery_taskstate
Running deferred SQL...
Installing custom SQL...
Running migrations:
Rendering model states... DONE
Applying contenttypes.0001_initial... OK
Applying taggit.0001_initial... OK
Applying taggit.0002_auto_20150616_2121... OK
Applying contenttypes.0002_remove_content_type_name... OK
Applying auth.0001_initial... OK
Applying auth.0002_alter_permission_name_max_length... OK
Applying auth.0003_alter_user_email_max_length... OK
Applying auth.0004_alter_user_username_opts... OK
Applying auth.0005_alter_user_last_login_null... OK
Applying auth.0006_require_contenttypes_0002... OK
Applying people.24_initial... OK
Applying account.0001_initial... OK
Applying account.0002_fix_str... OK
Applying account.0003_passwordexpiry_passwordhistory... OK
Applying account.0004_auto_20170416_1821... OK
Applying account.0005_signupcode_username... OK
Applying actstream.0001_initial... OK
Applying admin.0001_initial... OK
Applying agon_ratings.0001_initial... OK
Applying announcements.0001_initial... OK
Applying avatar.0001_initial... OK
Applying base.24_initial... OK
Applying base.24_to_26... OK
Applying base.26_to_27... OK
Applying base.0027_regions_with_geometry...Traceback (most recent call last):
File "manage.py", line 29, in <module>
execute_from_command_line(sys.argv)
File "/usr/home/meka/.virtualenvs/geonode/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
utility.execute()
File "/usr/home/meka/.virtualenvs/geonode/lib/python2.7/site-packages/django/core/management/__init__.py", line 346, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/home/meka/.virtualenvs/geonode/lib/python2.7/site-packages/django/core/management/base.py", line 394, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/home/meka/.virtualenvs/geonode/lib/python2.7/site-packages/django/core/management/base.py", line 445, in execute
output = self.handle(*args, **options)
File "/usr/home/meka/.virtualenvs/geonode/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 222, in handle
executor.migrate(targets, plan, fake=fake, fake_initial=fake_initial)
File "/usr/home/meka/.virtualenvs/geonode/lib/python2.7/site-packages/django/db/migrations/executor.py", line 110, in migrate
self.apply_migration(states[migration], migration, fake=fake, fake_initial=fake_initial)
File "/usr/home/meka/.virtualenvs/geonode/lib/python2.7/site-packages/django/db/migrations/executor.py", line 148, in apply_migration
state = migration.apply(state, schema_editor)
File "/usr/home/meka/.virtualenvs/geonode/lib/python2.7/site-packages/django/db/migrations/migration.py", line 115, in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "/usr/home/meka/.virtualenvs/geonode/lib/python2.7/site-packages/django/db/migrations/operations/fields.py", line 62, in database_forwards
field,
File "/usr/home/meka/.virtualenvs/geonode/lib/python2.7/site-packages/django/db/backends/base/schema.py", line 384, in add_field
definition, params = self.column_sql(model, field, include_default=True)
File "/usr/home/meka/.virtualenvs/geonode/lib/python2.7/site-packages/django/db/backends/base/schema.py", line 135, in column_sql
db_params = field.db_parameters(connection=self.connection)
File "/usr/home/meka/.virtualenvs/geonode/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 625, in db_parameters
type_string = self.db_type(connection)
File "/usr/home/meka/.virtualenvs/geonode/lib/python2.7/site-packages/django/contrib/gis/db/models/fields.py", line 247, in db_type
return connection.ops.geo_db_type(self)
AttributeError: 'DatabaseOperations' object has no attribute 'geo_db_type'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment