title: Django - Heroku push succeeds but getting AttributeError (module has no attribute)
body: <p>I pushed my web app to Heroku and it built / deployed fine, but I get this error when I access it: </p>
  
  <pre><code>AttributeError at /
  module 'wakemeup.models' has no attribute 'environment'
  Exception Location: /app/lib/UsefulFunctions/googleUtils.py in &lt;module&gt;, line 16
  Python Executable:  /app/.heroku/python/bin/python
  Python Version: 3.6.10
  Python Path:    
  ['/app/.heroku/python/bin',
   '/app',
   '/app/.heroku/python/lib/python36.zip',
   '/app/.heroku/python/lib/python3.6',
   '/app/.heroku/python/lib/python3.6/lib-dynload',
   '/app/.heroku/python/lib/python3.6/site-packages']
  </code></pre>
  
  <p>It works fine locally, so my first thought was the <code>PYTHONPATH</code>, but it seems to be similar locally:</p>
  
  <pre><code>Python Path:    
  ['C:\\Users\\ravioli\\projects\\dcp',
   'C:\\Program Files (x86)\\Python38-32\\python38.zip',
   'C:\\Program Files (x86)\\Python38-32\\DLLs',
   'C:\\Program Files (x86)\\Python38-32\\lib',
   'C:\\Program Files (x86)\\Python38-32',
   'C:\\Program Files (x86)\\Python38-32\\lib\\site-packages']
  </code></pre>
  
  <p><strong>Directory structure</strong> (simplified)</p>
  
  <p><a href="https://i.stack.imgur.com/90iid.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/90iid.png" alt="enter image description here"></a></p>
  
  <p><strong>googleUtils.py</strong> (simplified)</p>
  
  <pre><code>import os
  import sys
  import io
  import copy
  from urllib.error import HTTPError
  
  # Import - Google
  from google.oauth2 import service_account
  ...
  
  # Import - Application
  from lib.UsefulFunctions.dataUtils import get_setting
  import wakemeup.models.environment as env
  
  class GoogleDriveManager():
   ...
  </code></pre>
  
  <p>I originally had the <code>import wakemeup.models.environment as env</code> line as <code>from ... import</code> but that was giving me a circular dependency error, so I changed it and it works fine locally.  Not sure if that has to do with it.</p>
  
  <p>How can I fix this so it works on Heroku?</p>