title: How to pass a list/tuple into an environment variable for Django
body: <p>anybody know how I can pass a list into an environment variable? At the moment I am trying to put a list of codes into my settings.py file.</p>
  
  <p>I have this in my .env file:</p>
  
  <pre><code>ALLOWED_CODES='AB01', 'AB02'
  </code></pre>
  
  <p>In my settings.py this is what I have:</p>
  
  <pre><code>ALLOWED_CODES = [os.environ.get('ALLOWED_POSTCODES')]
  </code></pre>
  
  <p>If run docker-compose config it is parsed as:</p>
  
  <pre><code>ALLOWED_CODES: '''AB01'', ''AB02'''
  </code></pre>
  
  <p>What I want is for it to return the exact list defined in the .env file.</p>