title: Static file issue when deploying an Django app
body: <p>I understand there are some existing problems/answers about loading static files in production. </p>
  
  <p>However, my case is somehow different. My Django app not is deployed as the main app of my website (not in the public_html folder in the server), but an additional app (in a folder outside public_html). The server folder directory is like this</p>
  
  <pre><code>home/myaccount/
  ├── public_html
  |      └── static (not exist, location 1)
  ├── mydjango
         └── static (generated by collectstatic, location 2)
              └── css, fonts etc.
  </code></pre>
  
  <p>In my settings.py, <code>STATIC_ROOT = os.path.join(BASE_DIR, 'static/')</code> and <code>STATIC_URL = '/static/'</code>. </p>
  
  <p>Currently, the browser will look for static files in the non-existing location 1, i.e., <code>www.mypage.com/static/...</code>, instead of location 2. 404 errors return.</p>
  
  <p>My question is that how I can change <code>STATIC_ROOT</code> and <code>STATIC_URL</code> or other settings to make the browser look for location 2 instead of location 1?</p>