def _apply_blueprint(self, bp):
        try:
            from django.conf.urls import include
        except ImportError:
            from django.conf.urls.defaults import include  # lint:ok

        url = self.surl(bp.url_prefix, include(bp.patterns,
                                               namespace=bp.namespace,
                                               app_name=bp.app_name))

        urlpatterns = self.get_urlpatterns()
        urlpatterns.append(url)
        django.core.urlresolvers.clear_url_caches()
Apply a Blueprint.
dataset/ETHPy150Open amitu/importd/importd/__init__.py/D._apply_blueprint