Opened 9 years ago

Last modified 9 years ago

#25098 closed Bug

cant migrate contenttype with django 1.8 when new table is created — at Initial Version

Reported by: Sachin philip Mathew Owned by: nobody
Component: Migrations Version: 1.8
Severity: Normal Keywords: contentype migration
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Traceback (most recent call last):
File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/Users/sachinvettithanam/env/marlabs-onconsole/lib/python2.7/site-packages/django/core/management/init.py", line 338, in execute_from_command_line
utility.execute()
File "/Users/sachinvettithanam/env/marlabs-onconsole/lib/python2.7/site-packages/django/core/management/init.py", line 330, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/sachinvettithanam/env/marlabs-onconsole/lib/python2.7/site-packages/django/core/management/base.py", line 390, in run_from_argv
self.execute(*args, cmd_options)
File "/Users/sachinvettithanam/env/marlabs-onconsole/lib/python2.7/site-packages/django/core/management/base.py", line 441, in execute
output = self.handle(*args,
options)
File "/Users/sachinvettithanam/env/marlabs-onconsole/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 225, in handle
emit_post_migrate_signal(created_models, self.verbosity, self.interactive, connection.alias)
File "/Users/sachinvettithanam/env/marlabs-onconsole/lib/python2.7/site-packages/django/core/management/sql.py", line 280, in emit_post_migrate_signal
using=db)
File "/Users/sachinvettithanam/env/marlabs-onconsole/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 201, in send
response = receiver(signal=self, sender=sender, named)
File "/Users/sachinvettithanam/env/marlabs-onconsole/lib/python2.7/site-packages/django/contrib/auth/management/init.py", line 82, in create_permissions
ctype = ContentType.objects.db_manager(using).get_for_model(klass)
File "/Users/sachinvettithanam/env/marlabs-onconsole/lib/python2.7/site-packages/django/contrib/contenttypes/models.py", line 78, in get_for_model
"Error creating new content types. Please make sure contenttypes "
RuntimeError: Error creating new content types. Please make sure contenttypes is migrated before trying to migrate apps individually.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top