def load_configuration(request):
    return HttpResponse(
        "var configuration = %s;" %
        simplejson.dumps(DEFAULT_CONFIGURATION_BUILDER.get_configuration()))
Пример #2
0
def load_configuration(request):
    return HttpResponse(
        "var configuration = %s;" % json.dumps(
            DEFAULT_CONFIGURATION_BUILDER.get_configuration()
        )
    )
def get_config(request):
    return { 'javascript_settings': json.dumps(DEFAULT_CONFIGURATION_BUILDER.get_configuration(request)) }
Пример #4
0
def load_configuration(request):
    return HttpResponse("var configuration = %s;" % json.dumps(
        DEFAULT_CONFIGURATION_BUILDER.get_configuration(request),
        cls=DjangoJSONEncoder
    ))
Пример #5
0
def get_config(request):
    return {
        'javascript_settings':
        json.dumps(DEFAULT_CONFIGURATION_BUILDER.get_configuration())
    }
def get_config(request):
    return { 'javascript_settings': json.dumps(DEFAULT_CONFIGURATION_BUILDER.get_configuration(request), cls=DjangoJSONEncoder) }
Пример #7
0
def get_config(request):
    return {
        'javascript_settings':
        json.dumps(DEFAULT_CONFIGURATION_BUILDER.get_configuration(request),
                   cls=DjangoJSONEncoder)
    }