#16283: manage.py depends on django.contrib.contenttypes et al. ------------------------------------+------------------------------ Reporter: TheRoSS | Owner: nobody Type: Bug | Status: reopened Milestone: | Component: contrib.auth Version: 1.3 | Severity: Normal Resolution: | Keywords: Triage Stage: Accepted | Has patch: 0 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | ------------------------------------+------------------------------ Changes (by aaugustin):
* stage: Unreviewed => Accepted Comment: Your original report contained `django.contrib.auth.middleware.AuthenticationMiddleware`, and I missed the fact that the example you posted later on didn't — sorry about that. Thanks for your example. It really helped me reproduce the problem quickly. Indeed, I obtain this: {{{ % ./manage.py sql --traceback all Error: One or more models did not validate: auth.permission: 'content_type' has a relation with model <class 'django.contrib.contenttypes.models.ContentType'>, which has either not been installed or is abstract. }}} And by raising an exception in `django.contrib.auth.models`, I reproduce your backtrace. It shows that `manage.py` depends on `contenttypes`, `admin` and `auth`, which is bad because django's core is supposed not to depend on contrib apps. The root cause of the problem is the fact that since r14563 `django.core.management.validation` depends on `django.contrib.contenttypes`. I am going to update the summary to reflect this. -- Ticket URL: <https://code.djangoproject.com/ticket/16283#comment:6> 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 post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.