Hello, Django ≥ 1.7 recommends to define AppConfig subclasses for a given application in apps.py.
If the application also imports the app registry in its __init__.py with `from django.apps import apps`, this definition of `apps` will conflict with the `apps` submodule. I’ve worked around this problem in django.contrib.auth and django.contrib.comments (which is deprecated) with: `from django.apps import apps as django_apps`. If anything, this is one more reason why it’s a bad idea to put code in __init__.py. Given that we have a simple workaround, I’m inclined to simply ignore this pitfall. If someone has a better idea, let me know! -- Aymeric. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/A5A46F11-BA01-45E2-A322-8FA7D9AE888F%40polytechnique.org. For more options, visit https://groups.google.com/groups/opt_out.
