#26839: Migrate: TypeError: 'module' object is not callable
--------------------------------+--------------------
     Reporter:  henriquechehad  |      Owner:  nobody
         Type:  Uncategorized   |     Status:  new
    Component:  Migrations      |    Version:  1.9
     Severity:  Normal          |   Keywords:
 Triage Stage:  Unreviewed      |  Has patch:  0
Easy pickings:  0               |      UI/UX:  0
--------------------------------+--------------------
 I used makemigrations and after migrate command:


 {{{

 Traceback (most recent call last):
   File "manage.py", line 10, in <module>
     execute_from_command_line(sys.argv)
   File "/usr/local/lib/python2.7/dist-
 packages/django/core/management/__init__.py", line 353, in
 execute_from_command_line
     utility.execute()
   File "/usr/local/lib/python2.7/dist-
 packages/django/core/management/__init__.py", line 345, in execute
     self.fetch_command(subcommand).run_from_argv(self.argv)
   File "/usr/local/lib/python2.7/dist-
 packages/django/core/management/base.py", line 348, in run_from_argv
     self.execute(*args, **cmd_options)
   File "/usr/local/lib/python2.7/dist-
 packages/raven/contrib/django/management/__init__.py", line 41, in
 new_execute
     return original_func(self, *args, **kwargs)
   File "/usr/local/lib/python2.7/dist-
 packages/django/core/management/base.py", line 399, in execute
     output = self.handle(*args, **options)
   File "/usr/local/lib/python2.7/dist-
 packages/django/core/management/commands/migrate.py", line 89, in handle
     executor = MigrationExecutor(connection,
 self.migration_progress_callback)
   File "/usr/local/lib/python2.7/dist-
 packages/django/db/migrations/executor.py", line 20, in __init__
     self.loader = MigrationLoader(self.connection)
   File "/usr/local/lib/python2.7/dist-
 packages/django/db/migrations/loader.py", line 49, in __init__
     self.build_graph()
   File "/usr/local/lib/python2.7/dist-
 packages/django/db/migrations/loader.py", line 170, in build_graph
     self.load_disk()
   File "/usr/local/lib/python2.7/dist-
 packages/django/db/migrations/loader.py", line 105, in load_disk
     migration_module = import_module("%s.%s" % (module_name,
 migration_name))
   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
 import_module
     __import__(name)
   File "/root/filmow/src/filmow/quizzes/migrations/0001_initial.py", line
 12, in <module>
     class Migration(migrations.Migration):
   File "/root/filmow/src/filmow/quizzes/migrations/0001_initial.py", line
 63, in Migration
     ('end_date', models.DateTimeField(default=datetime(2016, 7, 4, 15, 18,
 59, 481979))),
 TypeError: 'module' object is not callable

 }}}


 I tested with 1.9.5 and 1.9.3 versions

--
Ticket URL: <https://code.djangoproject.com/ticket/26839>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/057.44b3ab662616913cb65e5dcac37d5108%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to