title: add variables in settings to be used in views - Django
body: <pre><code>def get(self , request , format=None):
      body = request.data
      name = body.get('name',"The_Flash")
  </code></pre>
  
  <p>In this instance I have hardcoded the value <em>The_Flash</em> if the request.data receives no value for <strong>name</strong> , 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 <a href="https://stackoverflow.com/questions/433162/can-i-access-constants-in-settings-py-from-templates-in-django">this</a> 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.</p>