{"action":"created","issue":{"url":"https://api.github.com/repos/WeblateOrg/weblate/issues/1300","repository_url":"https://api.github.com/repos/WeblateOrg/weblate","labels_url":"https://api.github.com/repos/WeblateOrg/weblate/issues/1300/labels{/name}","comments_url":"https://api.github.com/repos/WeblateOrg/weblate/issues/1300/comments","events_url":"https://api.github.com/repos/WeblateOrg/weblate/issues/1300/events","html_url":"https://github.com/WeblateOrg/weblate/issues/1300","id":196300447,"number":1300,"title":"Migrating 2.2. to latest (2.10): relation \"django_content_type\" already exists","user":{"login":"romanr","id":329079,"avatar_url":"https://avatars.githubusercontent.com/u/329079?v=3","gravatar_id":"","url":"https://api.github.com/users/romanr","html_url":"https://github.com/romanr","followers_url":"https://api.github.com/users/romanr/followers","following_url":"https://api.github.com/users/romanr/following{/other_user}","gists_url":"https://api.github.com/users/romanr/gists{/gist_id}","starred_url":"https://api.github.com/users/romanr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romanr/subscriptions","organizations_url":"https://api.github.com/users/romanr/orgs","repos_url":"https://api.github.com/users/romanr/repos","events_url":"https://api.github.com/users/romanr/events{/privacy}","received_events_url":"https://api.github.com/users/romanr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-18T21:28:27Z","updated_at":"2016-12-19T07:52:24Z","closed_at":null,"body":"\r\n### Actual behaviour\r\n```\r\n./manage.py migrate\r\nSystem check identified some issues:\r\n\r\nWARNINGS:\r\n?: (1_8.W001) The standalone TEMPLATE_* settings were deprecated in Django 1.8 and the TEMPLATES dictionary takes precedence. You must put the values of the following settings into your default TEMPLATES dict: TEMPLATE_DEBUG.\r\nOperations to perform:\r\n  Apply all migrations: accounts, admin, auth, authtoken, contenttypes, lang, sessions, sites, social_auth, trans\r\nRunning migrations:\r\n  Applying contenttypes.0001_initial...Traceback (most recent call last):\r\n  File \"./manage.py\", line 31, in <module>\r\n    execute_from_command_line(sys.argv)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py\", line 367, in execute_from_command_line\r\n    utility.execute()\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py\", line 359, in execute\r\n    self.fetch_command(subcommand).run_from_argv(self.argv)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py\", line 294, in run_from_argv\r\n    self.execute(*args, **cmd_options)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py\", line 345, in execute\r\n    output = self.handle(*args, **options)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/core/management/commands/migrate.py\", line 204, in handle\r\n    fake_initial=fake_initial,\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/db/migrations/executor.py\", line 115, in migrate\r\n    state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/db/migrations/executor.py\", line 145, in _migrate_all_forwards\r\n    state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/db/migrations/executor.py\", line 244, in apply_migration\r\n    state = migration.apply(state, schema_editor)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/db/migrations/migration.py\", line 129, in apply\r\n    operation.database_forwards(self.app_label, schema_editor, old_state, project_state)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/db/migrations/operations/models.py\", line 96, in database_forwards\r\n    schema_editor.create_model(model)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/db/backends/base/schema.py\", line 295, in create_model\r\n    self.execute(sql, params or None)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/db/backends/base/schema.py\", line 112, in execute\r\n    cursor.execute(sql, params)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py\", line 79, in execute\r\n    return super(CursorDebugWrapper, self).execute(sql, params)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py\", line 64, in execute\r\n    return self.cursor.execute(sql, params)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/db/utils.py\", line 94, in __exit__\r\n    six.reraise(dj_exc_type, dj_exc_value, traceback)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py\", line 62, in execute\r\n    return self.cursor.execute(sql)\r\ndjango.db.utils.ProgrammingError: relation \"django_content_type\" already exists\r\n```\r\n\r\n### Server configuration\r\n```\r\n./manage.py list_versions\r\nSystem check identified some issues:\r\n\r\nWARNINGS:\r\n?: (1_8.W001) The standalone TEMPLATE_* settings were deprecated in Django 1.8 and the TEMPLATES dictionary takes precedence. You must put the values of the following settings into your default TEMPLATES dict: TEMPLATE_DEBUG.\r\n * Weblate weblate-2.10-29-g482e794\r\n * Python 2.7.3\r\n * Django 1.10.4\r\n * six 1.10.0\r\n * python-social-auth 0.2.21\r\n * Translate Toolkit 2.0.0b7\r\n * Whoosh 2.7.4\r\n * defusedxml 0.4.1\r\n * Git 1.9.1\r\n * Pillow (PIL) 1.1.7\r\n * dateutil 2.6.0\r\n * lxml 3.7.0\r\n * django-crispy-forms 1.6.1\r\n * compressor 2.1\r\n * djangorestframework 3.5.3\r\n * pytz 2014.10\r\n * pyuca N/A\r\n * pyLibravatar N/A\r\n * PyYAML 3.10\r\n * Mercurial 3.2.2\r\n * Database backends: django.db.backends.postgresql_psycopg\r\n```\r\n\r\nHow can I fix this situation? Thank you!"},"comment":{"url":"https://api.github.com/repos/WeblateOrg/weblate/issues/comments/267902293","html_url":"https://github.com/WeblateOrg/weblate/issues/1300#issuecomment-267902293","issue_url":"https://api.github.com/repos/WeblateOrg/weblate/issues/1300","id":267902293,"user":{"login":"nijel","id":212189,"avatar_url":"https://avatars.githubusercontent.com/u/212189?v=3","gravatar_id":"","url":"https://api.github.com/users/nijel","html_url":"https://github.com/nijel","followers_url":"https://api.github.com/users/nijel/followers","following_url":"https://api.github.com/users/nijel/following{/other_user}","gists_url":"https://api.github.com/users/nijel/gists{/gist_id}","starred_url":"https://api.github.com/users/nijel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nijel/subscriptions","organizations_url":"https://api.github.com/users/nijel/orgs","repos_url":"https://api.github.com/users/nijel/repos","events_url":"https://api.github.com/users/nijel/events{/privacy}","received_events_url":"https://api.github.com/users/nijel/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T07:52:24Z","updated_at":"2016-12-19T07:52:24Z","body":"Adjust `settings.py` to match `settings_example.py` shipped with Weblate. As you're skipping quite a lot of versions (and upgrading Django as well), there will be many changes."}}
{"actor":{"display_login":"nijel"}}