I've updated from Django 1.8 to 1.9.
apps/comment/__init__.py (in 1.8)
from .models import Mixin
default_app_config = 'comment.apps.CommentConfig'
# Django imports.
from django.apps import AppConfig
name = 'comments'
Perform initialization tasks.
from .models import CommentMixin
from comment import Mixin
from .models import CommentMixin imports
CommentMixin so that you can use it inside the
ready() method. It does not magically add it to the
comment module so that you can access it as
You could assign it to the
comments module in the
# Django imports. from django.apps import AppConfig import comments class CommentConfig(AppConfig): name = 'comments' def ready(self): """ Perform initialization tasks. """ from .models import CommentMixin comments.CommentMixin = CommentsMixin
However I would discourage you from doing this, you might end up with hard-to-debug import errors later on. I would just change your imports to
from comment.models import CommentMixin.