Skip to content

Commit

Permalink
ensure that management commands are found
Browse files Browse the repository at this point in the history
if the cache is not populated, management command discovery doesn't happen
  • Loading branch information
ptone committed Jul 11, 2012
1 parent 93ccd97 commit 64d0d1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions django/core/management/__init__.py
Expand Up @@ -99,6 +99,7 @@ def get_commands():
# Find the installed apps
try:
from django.apps import cache
cache._populate()
apps = cache.loaded_apps
except (AttributeError, EnvironmentError, ImportError):
apps = []
Expand Down

0 comments on commit 64d0d1c

Please sign in to comment.