title: Django media files not showing with Debug = False on production - Django 1.10
body: <p>I currently have two kind of files static files and media files.The static files contain my css,js and other static content. The media files contain stuff that the user uploads.The static folder is right next to the media folder.Now on my deployed machine. If I set the <code>DEBUG = False</code> my static files are presented just fine however my media content is never displayed. I get a <code>404 not found</code> error.
  My quuestion is how do I display media content in production environment when DEBUG = False. With DEBUG= True everything seems to work fine ? I read the following <a href="https://docs.djangoproject.com/en/1.11/howto/static-files/" rel="noreferrer">page</a> and tried these things out. </p>
  
  <p><strong>1-Tried creating a separate folder for static media just like static content.</strong>
  Currently my static content is being managed by the <code>collectstatic</code> command. I am using apache on webfaction.I have a static folder called <code>static_content</code> when I ran <code>./manage.py collectstatic</code> all of my content in static folder was copied to the <code>static_content</code> folder.I tried creating another static folder called <code>static_media</code>. However when I ran <code>./manage.py collectstatic</code> the content of my <code>media</code> folder got copied to <code>static_content</code> and not to <code>static_media</code> like it should have. Can anyone tell me why the collectstatic command did not paste the content to <code>static_media</code> instead ?</p>
  
  <p>This is what my configuration looks like </p>
  
  <pre><code>ALLOWED_HOSTS = [
     "*",
     'mywebsite.com',
     'www.mywebsite.com.com',
  ]
  
  
  STATIC_URL = 'http://mywebsite.com.com/static/'
  STATIC_ROOT = '/home/admin/webapps/static_content'
  STATICFILES_DIRS = (
                          '/home/admin/webapps/mainfolder/mainapp/static',
                          '/home/admin/webapps/mainfolder/mainapp/media',
                     )
  PROJECT_PATH = os.path.join(BASE_DIR, 'static')
  
  MEDIA_URL = 'http://mywebsite.com.com/media/'
  MEDIA_ROOT = '/home/admin/webapps/static_media' 
  </code></pre>
  
  <p>This is what my urls.py looks like</p>
  
  <pre><code>admin.autodiscover()
  urlpatterns = [
  ....
  ]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  </code></pre>
  
  <p>Am I using the correct approach creating a separate folder for managing my media content just like for my static content for when DEBUG=False ? If so then why is collectstatic command dumping all my media content into my <code>static_content</code> folder instead of <code>static_media</code> folder ? Also if I use a static folder for managing my media content when a user uploads data where will that be uploaded to <code>media</code> or <code>static_media</code>. </p>