Commits

Waldemar Kornewald  committed b37a6c1

fixed possible bug when switching between main handler and appstats and back

  • Participants
  • Parent commits aa5f615

Comments (0)

Files changed (3)

File appstats/ui.py

 # Initialize Django
-from djangoappengine.main import main
+from djangoappengine import main
 
 from google.appengine.ext.appstats.ui import app as application, main
 

File deferred/handler.py

 # Initialize Django
-from djangoappengine.main.main import make_profileable
+from djangoappengine import main
 
 from django.utils.importlib import import_module
 from django.conf import settings
 for app in settings.INSTALLED_APPS:
     try:
         import_module('%s.models' % (app))
-        import logging
-        logging.debug(app)
     except ImportError:
         pass
 
 from google.appengine.ext.deferred.handler import main
 from google.appengine.ext.deferred.deferred import application
 
-main = make_profileable(main)
-
 if __name__ == '__main__':
     main()

File mapreduce/handler.py

 # Initialize Django
-from djangoappengine.main.main import make_profileable
+from djangoappengine import main
 from django.utils.importlib import import_module
 from django.conf import settings
 
 
 from google.appengine.ext.mapreduce.main import APP as application, main
 
-main = make_profileable(main)
-
 if __name__ == '__main__':
     main()