This website requires JavaScript.
Explore
Help
Sign In
innov
/
django1
Watch
1
Star
0
Fork
You've already forked django1
0
Code
Issues
Pull Requests
1
Projects
Releases
Wiki
Activity
8cff95e937
django1
/
django
/
apps
/
__init__.py
3 lines
110 B
Python
Raw
Normal View
History
Unescape
Escape
Made AppConfig importable from django.apps. It is a public API.
2013-12-22 18:36:49 +08:00
from
.
base
import
AppConfig
# NOQA
Removed module-level functions for the app cache. Since the original ones in django.db.models.loading were kept only for backwards compatibility, there's no need to recreate them. However, many internals of Django still relied on them. They were also imported in django.db.models. They never appear in the documentation, except a quick mention of get_models and get_app in the 1.2 release notes to document an edge case in GIS. I don't think that makes them a public API. This commit doesn't change the overall amount of global state but clarifies that it's tied to the app_cache object instead of hiding it behind half a dozen functions.
2013-12-12 06:31:34 +08:00
from
.
cache
import
app_cache
,
UnavailableApp
# NOQA