Changes between Version 2 and Version 4 of Ticket #24524


Ignore:
Timestamp:
Mar 23, 2015, 8:25:22 AM (10 years ago)
Author:
Markus Holtermann
Comment:

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"
     1Using 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`
    22
     3{{{#!python
    34Traceback:
    4     File "manage.py", line 9, in <module>
     5  File "manage.py", line 9, in <module>
    56    execute_from_command_line(sys.argv)
    6     File "...\site-packages\django\core\management\__init__.py", line 338, in execute_from_command_line
     7  File "...\site-packages\django\core\management\__init__.py", line 338, in execute_from_command_line
    78    utility.execute()
    8     File "...\site-packages\django\core\management\__init__.py", line 330, in execute
     9  File "...\site-packages\django\core\management\__init__.py", line 330, in execute
    910    self.fetch_command(subcommand).run_from_argv(self.argv)
    10     File "...\site-packages\django\core\management\base.py", line 390, in run_from_argv
     11  File "...\site-packages\django\core\management\base.py", line 390, in run_from_argv
    1112    self.execute(*args, *\*cmd_options)
    12     File "...\site-packages\django\core\management\base.py", line 441, in execute
     13  File "...\site-packages\django\core\management\base.py", line 441, in execute
    1314    output = self.handle(*args, *\*options)
    14     File "...\site-packages\django\core\management\commands\migrate.py", line 179, in handle
     15  File "...\site-packages\django\core\management\commands\migrate.py", line 179, in handle
    1516    created_models = self.sync_apps(connection, executor.loader.unmigrated_apps)
    16     File "...\site-packages\django\core\management\commands\migrate.py", line 317, in sync_apps
     17  File "...\site-packages\django\core\management\commands\migrate.py", line 317, in sync_apps
    1718    cursor.execute(statement)
    18     File "...\site-packages\django\db\backends\utils.py", line 79, in execute
     19  File "...\site-packages\django\db\backends\utils.py", line 79, in execute
    1920    return super(CursorDebugWrapper, self).execute(sql, params)
    20     File "...\site-packages\django\db\backends\utils.py", line 64, in execute
     21  File "...\site-packages\django\db\backends\utils.py", line 64, in execute
    2122    return self.cursor.execute(sql, params)
    22     File "...\site-packages\django\db\utils.py", line 97, in __exit__
     23  File "...\site-packages\django\db\utils.py", line 97, in __exit__
    2324    six.reraise(dj_exc_type, dj_exc_value, traceback)
    24     File "...\site-packages\django\db\backends\utils.py", line 62, in execute
     25  File "...\site-packages\django\db\backends\utils.py", line 62, in execute
    2526    return self.cursor.execute(sql)
    26     django.db.utils.ProgrammingError: relation "auth_group" does not exist
     27django.db.utils.ProgrammingError: relation "auth_group" does not exist
     28}}}
    2729
    28 What happens is that the django_migrations table gets created. Creation of all other tables are discarded/reverted due to this error.
     30What happens is that the `django_migrations` table gets created. Creation of all other tables are discarded/reverted due to this error.
    2931
    3032If 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.
Back to Top