﻿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
26616	Documentation: Improve description of AppConfig.ready()	Kevin Christopher Henry	nobody	"I find this sentence and example in the documentation a bit confusing:

  You cannot import models in modules that define application configuration classes, but you can use `get_model()` to access a model class by name, like this:
{{{
def ready(self):
    MyModel = self.get_model('MyModel')
}}}

It seems to be comparing importing ''at the module level'' with using `get_model()` ''inside ready()''. But if I understand the '''How applications are loaded''' section correctly, by the time `ready()` is run the models have already been imported, and therefore it would also be fine to do a direct import inside of `ready()`:

{{{
def ready(self):
    from .models import MyModel
}}}

If that's the case then I think this sentence is confusing. If that's not the case then I've misunderstood '''How applications are loaded''' and perhaps it needs to be clarified."	Cleanup/optimization	closed	Documentation	dev	Normal	fixed			Accepted	0	0	0	0	0	0
