#22005: PendingDeprecationWarning with management commands.
---------------------------------+------------------------------------
     Reporter:  loic84           |                    Owner:  nobody
         Type:  Bug              |                   Status:  new
    Component:  Uncategorized    |                  Version:  master
     Severity:  Release blocker  |               Resolution:
     Keywords:  app-loading      |             Triage Stage:  Accepted
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+------------------------------------

Comment (by loic84):

 Full traceback:

 {{{
 $ python -Werror ./manage.py validate
 Traceback (most recent call last):
   File "./manage.py", line 10, in <module>
     execute_from_command_line(sys.argv)
   File "/Users/loic/Dev/django/django/core/management/__init__.py", line
 427, in execute_from_command_line
     utility.execute()
   File "/Users/loic/Dev/django/django/core/management/__init__.py", line
 391, in execute
     django.setup()
   File "/Users/loic/Dev/django/django/__init__.py", line 21, in setup
     apps.populate(settings.INSTALLED_APPS)
   File "/Users/loic/Dev/django/django/apps/registry.py", line 84, in
 populate
     app_config = AppConfig.create(entry)
   File "/Users/loic/Dev/django/django/apps/config.py", line 87, in create
     module = import_module(entry)
   File
 
"/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py",
 line 37, in import_module
     __import__(name)
   File "/Users/loic/Dev/django/django/contrib/admin/__init__.py", line 10,
 in <module>
     from django.contrib.admin.sites import AdminSite, site
   File "/Users/loic/Dev/django/django/contrib/admin/sites.py", line 5, in
 <module>
     from django.contrib.auth.views import redirect_to_login
   File "/Users/loic/Dev/django/django/contrib/auth/views.py", line 16, in
 <module>
     from django.contrib.auth.forms import AuthenticationForm,
 PasswordResetForm, SetPasswordForm, PasswordChangeForm
   File "/Users/loic/Dev/django/django/contrib/auth/forms.py", line 16, in
 <module>
     from django.contrib.auth.models import User
   File "/Users/loic/Dev/django/django/contrib/auth/models.py", line 16, in
 <module>
     from django.contrib.contenttypes.models import ContentType
   File "/Users/loic/Dev/django/django/contrib/contenttypes/models.py",
 line 131, in <module>
     class ContentType(models.Model):
   File "/Users/loic/Dev/django/django/db/models/base.py", line 117, in
 __new__
     warnings.warn(msg, PendingDeprecationWarning, stacklevel=2)
 PendingDeprecationWarning: Model class
 django.contrib.contenttypes.models.ContentType doesn't declare an explicit
 app_label and either isn't in an application in INSTALLED_APPS or else was
 imported before its application was loaded. This will no longer be
 supported in Django 1.9.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22005#comment:4>
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/064.fab626512931e3f6621cda914562f8c8%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to