Răsfoiți Sursa

HUE-7852 [core] Metric page fails on cherrypy server

Roohi 7 ani în urmă
părinte
comite
5f475f733f
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      desktop/core/src/desktop/lib/apputil.py

+ 2 - 0
desktop/core/src/desktop/lib/apputil.py

@@ -46,6 +46,8 @@ def get_app_for_module(module):
   for app in settings.INSTALLED_APPS:
     # TODO(philip): This is quite hacky.  If desktop becomes a more
     # full application, we'll want to separate this out more cleanly.
+    if module.__name__.startswith('desktop.lib.metrics.views'):
+      return app
     if module.__name__.startswith(app) and not module.__name__.startswith("desktop.lib"):
       return app
   return None