title: How to access Environment Variables in Django with Django Environ?
body: <p>I'm a Node developer but I need to create a Django app (i'm totally beginner in Django).
  I need to read some data from an API but ofc, I shouldn't hardcode the API url.</p>
  
  <p>So having <strong>API_BASE_URL=api.domain.com</strong> in my <strong>.env</strong> file, in Node I would access the variables in my functions this way:</p>
  
  <pre class="lang-js prettyprint-override"><code>import ('dotenv/config');
  import axios from 'axios';
  
  baseUrl = process.env.API_BASE_URL;
  
  function getApiData() {
      return axios.get(baseUrl);
  }
  </code></pre>
  
  <p>So how would be the Python/Django version of it?</p>
  
  <p>Saying I have the function bellow:</p>
  
  <pre class="lang-py prettyprint-override"><code>import ???
  
  def get_api_data():
      url = ????
  </code></pre>