Did I find the right examples for you? yes no

All Samples(6)  |  Call(2)  |  Derive(0)  |  Import(4)
Autodiscovers files that should be found by dash.

        def autodiscover():
    """
    Autodiscovers files that should be found by dash.
    """
    from django.conf import settings
    from dash.settings import PLUGINS_MODULE_NAME, LAYOUTS_MODULE_NAME

    def do_discover(module_name):
        for app in settings.INSTALLED_APPS:
            try:
                app_path = __import__(app, {}, {}, [app.split('.')[-1]]).__path__
            except AttributeError:
                continue

            try:
                imp.find_module(module_name, app_path)
            except ImportError:
                continue
            __import__('{0}.{1}'.format(app, module_name))

    # Discover layouts
    do_discover(LAYOUTS_MODULE_NAME)

    # Discover plugins
    do_discover(PLUGINS_MODULE_NAME)
        


src/d/j/django-dash-0.4.4/src/dash/base.py   django-dash(Download)
from django.utils.encoding import force_text
 
from dash.discover import autodiscover
from dash.exceptions import LayoutDoesNotExist
from dash.settings import (
    """
    if not (plugin_registry._registry and layout_registry._registry and plugin_widget_registry._registry):
        autodiscover()
 
def get_registered_plugins():

src/d/j/django-dash-HEAD/src/dash/base.py   django-dash(Download)
from django.utils.encoding import force_text
 
from dash.discover import autodiscover
from dash.exceptions import LayoutDoesNotExist
from dash.settings import (
    """
    if not (plugin_registry._registry and layout_registry._registry and plugin_widget_registry._registry):
        autodiscover()
 
def get_registered_plugins():

src/d/j/django-dash-HEAD/src/dash/tests.py   django-dash(Download)
from selenium.webdriver.support.wait import WebDriverWait
 
from dash.discover import autodiscover
from dash.base import plugin_registry, layout_registry
from dash.base import get_registered_plugins, get_registered_layouts, get_layout

src/d/j/django-dash-0.4.4/src/dash/tests.py   django-dash(Download)
from selenium.webdriver.support.wait import WebDriverWait
 
from dash.discover import autodiscover
from dash.base import plugin_registry, layout_registry
from dash.base import get_registered_plugins, get_registered_layouts, get_layout