Beispiel #1
0
def setup(request):
    env = os.environ
    dev = env['SERVER_SOFTWARE']
    if dev is None:
        return HttpResponse('no env[SERVER_SOFTWARE]')
    if not dev.startswith('Development'):
        return HttpResponse('no development mode')

    setupConfig()

    return HttpResponse('setup ok') 
Beispiel #2
0
def config_setup(request):
    from utils.config import setupConfig
    setupConfig()
    return HttpResponse("ok")
Beispiel #3
0
def config_setup(request):
    cfg.setupConfig()
    return redirect('/admin/sys/')