mirror of
https://github.com/django/django.git
synced 2024-11-18 07:26:04 +00:00
a4cb140004
Refactored get_app() to rely on that method.
get_app() starts by calling _populate(), which goes through
INSTALLED_APPS and, for each app, imports the app module and attempts to
import the models module. At this point, no further imports are
necessary to return the models module for a given app. Therefore, the
implementation of get_app() can be simplified and the safeguards for
race conditions can be removed.
Besides, the emptyOK parameter isn't used anywhere in Django. It was
introduced in
|
||
---|---|---|
.. | ||
app_with_import | ||
broken_app | ||
complex_app | ||
custom_templates | ||
management | ||
simple_app | ||
__init__.py | ||
models.py | ||
tests.py | ||
urls.py |