예제 #1
0
    def build_bundles(self):
        self.built_bundles = []
        for bundle_name in settings.MEDIA_BUNDLES.keys():
            bundle = bundles.get_bundle(bundle_name)
            self.stdout.write("building %s\n" % bundle_name)
            self.built_bundles.append((bundle, bundle.build_contents()))

        self.stdout.write("building old embedder\n")
        self.old_embedder_js_code = oldembedder.js_code()
예제 #2
0
def old_embedder_js(request):
    return HttpResponse(oldembedder.js_code(), 'text/javascript')