Changes between Version 2 and Version 4 of Ticket #24524
- Timestamp:
- Mar 23, 2015, 8:25:22 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24524 – Description
v2 v4 1 Using an AbstractUser based user model with Django 1.8 RC1 causes the management command to create the table layout on a *new and empty database* to fail: "python manage.py migrate"1 Using an `AbstractUser` based user model with Django 1.8 RC1 causes the management command to create the table layout on a *new and empty database* to fail: `python manage.py migrate` 2 2 3 {{{#!python 3 4 Traceback: 4 5 File "manage.py", line 9, in <module> 5 6 execute_from_command_line(sys.argv) 6 7 File "...\site-packages\django\core\management\__init__.py", line 338, in execute_from_command_line 7 8 utility.execute() 8 9 File "...\site-packages\django\core\management\__init__.py", line 330, in execute 9 10 self.fetch_command(subcommand).run_from_argv(self.argv) 10 11 File "...\site-packages\django\core\management\base.py", line 390, in run_from_argv 11 12 self.execute(*args, *\*cmd_options) 12 13 File "...\site-packages\django\core\management\base.py", line 441, in execute 13 14 output = self.handle(*args, *\*options) 14 15 File "...\site-packages\django\core\management\commands\migrate.py", line 179, in handle 15 16 created_models = self.sync_apps(connection, executor.loader.unmigrated_apps) 16 17 File "...\site-packages\django\core\management\commands\migrate.py", line 317, in sync_apps 17 18 cursor.execute(statement) 18 19 File "...\site-packages\django\db\backends\utils.py", line 79, in execute 19 20 return super(CursorDebugWrapper, self).execute(sql, params) 20 21 File "...\site-packages\django\db\backends\utils.py", line 64, in execute 21 22 return self.cursor.execute(sql, params) 22 23 File "...\site-packages\django\db\utils.py", line 97, in __exit__ 23 24 six.reraise(dj_exc_type, dj_exc_value, traceback) 24 25 File "...\site-packages\django\db\backends\utils.py", line 62, in execute 25 26 return self.cursor.execute(sql) 26 django.db.utils.ProgrammingError: relation "auth_group" does not exist 27 django.db.utils.ProgrammingError: relation "auth_group" does not exist 28 }}} 27 29 28 What happens is that the django_migrationstable gets created. Creation of all other tables are discarded/reverted due to this error.30 What happens is that the `django_migrations` table gets created. Creation of all other tables are discarded/reverted due to this error. 29 31 30 32 If necessary, I may be able to provide a minimal code for reproducing this issue. It's happening in five independent projects for me. I hope I'm doing something wrong here, but it may just as well be a bug.