Commits

Alexander Solovyov committed 0ec682d

fix scoping problem

Comments (0)

Files changed (1)

svarga/core/env.py

         # Define new environment class
         class Env(object):
             settings = Settings(s)
-            app = app
             middlewares = map(import_attribute, getattr(s, 'MIDDLEWARES', []))
             static_urls = getattr(s, 'STATIC_URLS', {})
 
 
                 return cls.static_urls.get(name, [None])[0]
 
+        Env.app = app
         cls._env = Env
 
         # Call local initializers