Пример #1
0
def export_settings(request):
    return HttpResponse(ezsettings.as_readable_json(),
                        content_type='application/json; charset=utf-8')
Пример #2
0
def export_settings(request):
    return HttpResponse(ezsettings.as_readable_json(), content_type="application/json; charset=utf-8")
Пример #3
0
 def handle(self, *args, **options):
     from ezconf import ezsettings
     original_settings = ezsettings.as_readable_json()
     ezsettings.reset_settings_with_json_data(sys.stdin.read())
     print "//** Below are original settings were overridden:\n"
     sys.stdout.write(original_settings)
Пример #4
0
 def handle(self, *args, **options):
     from ezconf import ezsettings
     sys.stdout.write(ezsettings.as_readable_json().encode('utf-8'))
Пример #5
0
 def handle(self, *args, **options):
     from ezconf import ezsettings
     original_settings = ezsettings.as_readable_json()
     ezsettings.reset_settings_with_json_data(sys.stdin.read())
     print "//** Below are original settings were overridden:\n"
     sys.stdout.write(original_settings)
Пример #6
0
 def handle(self, *args, **options):
     from ezconf import ezsettings
     sys.stdout.write(ezsettings.as_readable_json().encode('utf-8'))