﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
30450	Cannot import AbstractBaseUser.	Felipe Buccioni	nobody	"When import AbstractUser from my models, reading the views the follow error is raised:


{{{
  File ""/apps/authn/__init__.py"", line 4, in <module>
    from .urls import urls
  File ""/apps/authn/urls.py"", line 2, in <module>
    from . import views
  File ""/apps/authn/views/__init__.py"", line 21, in <module>
    from . import models
  File ""/apps/authn/models.py"", line 6, in <module>
    from django.contrib.auth.models import AbstractBaseUser
  File ""/virtualenv/lib/python3.5/site-packages/django/contrib/auth/models.py"", line 2, in <module>
    from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
  File ""/virtualenv/lib/python3.5/site-packages/django/contrib/auth/base_user.py"", line 47, in <module>
    class AbstractBaseUser(models.Model):
  File ""/virtualenv/lib/python3.5/site-packages/django/db/models/base.py"", line 100, in __new__
    app_config = apps.get_containing_app_config(module)
  File ""/virtualenv/lib/python3.5/site-packages/django/apps/registry.py"", line 244, in get_containing_app_config
    self.check_apps_ready()
  File ""/virtualenv/lib/python3.5/site-packages/django/apps/registry.py"", line 127, in check_apps_ready
    raise AppRegistryNotReady(""Apps aren't loaded yet."")
django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
}}}


I am using django 2.0 but in 1.11 I had the same problem.

Cheers"	Bug	closed	Core (Other)	dev	Normal	invalid			Unreviewed	0	0	0	0	0	0
