title: How to define Constants in settings.py and access them in views function in django
body: <p>I want to know how can i define some constants in django and use them in view.py function.
  I have some variables which are never going to be changed and are used  in a function many a time. So i decided to define them as constants.</p>
  
  <p>If any one can help me with the declaration of constants and how to import and use them in a function in views.py</p>
  
  <p>EDIT:</p>
  
  <p>constant.py</p>
  
  <pre><code>total_range='A1:C15'
  </code></pre>
  
  <p>view.py</p>
  
  <pre><code>from constant import *
  def myFunction():
      ***Code to access google spreadsheet**
      cell_value_list=worksheet.range(total_range)
  </code></pre>
  
  <p>here it gives me an error saying total_range is not defined.</p>