@RequireLogin()
def get(request, username=None):
    if username is None:  # Retrieve all users
        return get_all_users(request)

    # Users can only retrieve their own account, unless admin
    if (request.user['username'] != username) and (auth.is_admin(request.user) is False):
        return HttpResponseForbidden()

    from api.models import db_model
    dbc = db_model.connect()
    user = dbc.hbuser.find_one({"username": username}, {"_id": 0})
    if user is None:
        return HttpResponseNotFound()
    else:
        return JsonResponse(user)
Generate a oneway anova via bayesian markov-chain monte carlo
dataset/ETHPy150Open emccode/heliosburn/heliosburn/django/hbproject/api/views/user.py/get--crossover with--dataset/ETHPy150Open beltashazzer/jmpy/jmpy/bayes/oneway.py/oneway