title: Docker Django 404 for web static files, but fine for admin static files
body: <p>please help me on this docker django configuration for serving static files. </p>
  
  <p>my <code>Django</code> project running on <code>Docker</code> got some issues with delivering <code>static files</code>. </p>
  
  <blockquote>
    <p>All static files for <strong>admin view</strong> is loading fine, but static files for client web view is throwing 404 Not found Error.</p>
  </blockquote>
  
  <p>This is my <strong><code>docker.yml</code></strong> configuration details:</p>
  
  <pre><code>web:
    build: ./web
    expose:
      - "8000"
    links:
      - postgres:postgres
    volumes:
      - ./web:/usr/src/app
    ports:
      - "8000:8000"
    env_file: .env
    command: python manage.py runserver 0.0.0.0:8000
  
  postgres:
    image: postgres:latest
    volumes:
      - /var/lib/postgresql
    ports:
      - "5432:5432"
  </code></pre>
  
  <h3>update</h3>
  
  <p>This is the admin static file url will look like :
  <em><a href="http://developer.com:8000/static/admin/css/base.css" rel="noreferrer">http://developer.com:8000/static/admin/css/base.css</a></em>
  and this is how client static file url looks like:
  <em><a href="http://developer.com:8000/static/css/base.css" rel="noreferrer">http://developer.com:8000/static/css/base.css</a></em>
  Where those admin folder in static directory is creator by running django command <code>collectstatic</code></p>
  
  <p>I have used this setting previously, and was working fine. But when I moved the project root folder to another directory seems have this issue.</p>
  
  <p>I am totally stuck here, many many thanks for all your help and feedback.</p>