def get(self , request , format=None):
body = request.data
name = body.get('name',"The_Flash")
In this instance I have hardcoded the value The_Flash if the request.data receives no value for name , but I know this is not a sound way. I want this to be added as a variable in the settings.py file of my django project. I went through references from SO like this and few others but this is not what I want. Can someone tell me which is the most robust way of doing this. I am using Django 1.8.