Display defaults units issue

8 views
Skip to first unread message

Filipe Marques

unread,
Mar 26, 2015, 10:30:21 AM3/26/15
to opentree...@googlegroups.com
Guys,

I'm getting a 500 from server after I changed the DISPLAY_DEFAULTS in the default_settings.py . I have the server response and the request (attached files). I think i'm missing some settings.

The DISPLAY_DEFAULTS  is in the response file but i'll post it here as well,

DISPLAY_DEFAULTS = {
    'plot': {
        'width':  {'units': 'cm', 'digits': 1},
        'length': {'units': 'cm', 'digits': 1},
    },
    'tree': {
        'diameter':      {'units': 'cm', 'digits': 1},
        'height':        {'units': 'm', 'digits': 1},
        'canopy_height': {'units': 'm', 'digits': 1}
    },
    'eco': {
        'energy':     {'units': 'kwh/year', 'digits': 1},
        'stormwater': {'units': 'L/year', 'digits': 1},
        'co2':        {'units': 'kg/year', 'digits': 1},
        'co2storage': {'units': 'kg', 'digits': 1},
        'airquality': {'units': 'kg/year', 'digits': 1}
    }
}

Thank you!
request.json
response.txt
Reply all
Reply to author
Forward
0 new messages