Production grade Django project with a get_request_value having 903 references.
The function definition:
8
logger = logging getLogger (_name_)
v utils.py wovo/base_app
def get request_value(request, key, default _value):
To get passed key value from request object
Alt+D to Document def get_request_value(request, key, default_value):
key in request.data:
return request. data [key]
return default_value
I
def get_boolean_from_string(string_val):
To get boolean value from string
if isinstance(string_val, str):
if string_val.upper() == “TRUE” :
return True
elif string_val. upper() == “FALSE”:
return False
return string_val
To get the gender type id fom request
GIPHY App Key not set. Please check settings