Skip to content

Instantly share code, notes, and snippets.

@jotes
Created October 28, 2018 18:52
Show Gist options
  • Save jotes/6c15a57a152d478a53131772e9eb8f5a to your computer and use it in GitHub Desktop.
Save jotes/6c15a57a152d478a53131772e9eb8f5a to your computer and use it in GitHub Desktop.
app@b54875f5d73a:/app$ ./manage.py migrate
[nltk_data] Downloading package perluniprops to /home/app/nltk_data...
[nltk_data] Unzipping misc/perluniprops.zip.
Operations to perform:
Apply all migrations: account, admin, auth, base, checks, contenttypes, guardian, notifications, sessions, sites, socialaccount, sync, tags, tour, waffle
Running migrations:
Applying base.0120_bug_1423679_update_plurals_20180417_1135...Traceback (most recent call last):
File "./manage.py", line 20, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 204, in handle
fake_initial=fake_initial,
File "/usr/local/lib/python2.7/site-packages/django/db/migrations/executor.py", line 115, in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
File "/usr/local/lib/python2.7/site-packages/django/db/migrations/executor.py", line 145, in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
File "/usr/local/lib/python2.7/site-packages/django/db/migrations/executor.py", line 244, in apply_migration
state = migration.apply(state, schema_editor)
File "/usr/local/lib/python2.7/site-packages/django/db/migrations/migration.py", line 129, in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "/usr/local/lib/python2.7/site-packages/django/db/migrations/operations/special.py", line 193, in database_forwards
self.code(from_state.apps, schema_editor)
File "/app/pontoon/base/migrations/0120_bug_1423679_update_plurals_20180417_1135.py", line 252, in update_plurals
for variant in element.expression.variants
File "/app/pontoon/base/migrations/0120_bug_1423679_update_plurals_20180417_1135.py", line 252, in <genexpr>
for variant in element.expression.variants
AttributeError: 'module' object has no attribute 'NumberExpression'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment