Example #1
0
File: views.py Project: lrbmx/ezlog
def export_settings(request):
    return HttpResponse(ezsettings.as_readable_json(),
                        content_type='application/json; charset=utf-8')
Example #2
0
def export_settings(request):
    return HttpResponse(ezsettings.as_readable_json(), content_type="application/json; charset=utf-8")
Example #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)
Example #4
0
 def handle(self, *args, **options):
     from ezconf import ezsettings
     sys.stdout.write(ezsettings.as_readable_json().encode('utf-8'))
Example #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)
Example #6
0
 def handle(self, *args, **options):
     from ezconf import ezsettings
     sys.stdout.write(ezsettings.as_readable_json().encode('utf-8'))