Commits

Stephen McDonald committed e229387

Ensure mezzanine's apps have their settings loaded before any others.

  • Participants
  • Parent commits 1310772

Comments (0)

Files changed (1)

mezzanine/conf/__init__.py

             return setting["default"]
 
 
-other_apps = [app for app in django_settings.INSTALLED_APPS if app != __name__]
-for app in [__name__] + other_apps:
+mezz_first = lambda app: not app.startswith("mezzanine.")
+for app in sorted(django_settings.INSTALLED_APPS, key=mezz_first):
     try:
         __import__("%s.defaults" % app)
     except (ImportError, ValueError):  # ValueError raised by convert_to_south