Browse Source

Fixes app

Ask Solem 13 years ago
parent
commit
b0adc67e59
1 changed files with 4 additions and 1 deletions
  1. 4 1
      celery/app/__init__.py

+ 4 - 1
celery/app/__init__.py

@@ -13,12 +13,15 @@ from __future__ import absolute_import
 
 import os
 
+from ..local import Proxy
+
 from . import state
-from .base import App, AppPickler             # noqa
+from .base import App, AppPickler  # noqa
 
 set_default_app = state.set_default_app
 current_app = state.current_app
 current_task = state.current_task
+default_app = Proxy(lambda: state.default_app)
 
 #: Returns the app provided or the default app if none.
 #: