title: heroku django collectstatic error
body: <p>i'm trying to run collect my static files on heroku so i ran the command:</p>
  
  <pre><code>heroku run python manage.py collectstatic --noinput
  </code></pre>
  
  <p>my settings file is:</p>
  
  <pre><code>BASE_DIR = os.path.dirname(os.path.abspath(__file__))   
  STATIC_ROOT = 'staticfiles'
  STATIC_URL = '/static/'
  
  STATICFILES_DIRS = (
      os.path.join(BASE_DIR, 'static'),
  )
  # define the directory which all upload files will be saved
  PROJECT_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
  MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'MyApp/media/')
  MEDIA_URL = '/MyApp/media/'
  </code></pre>
  
  <p>and i got the following error message:</p>
  
  <pre><code>OSError: [Errno 2] No such file or directory: '/app/MyApp/static'
  </code></pre>
  
  <p>what does this mean?</p>
  
  <p>why should i have a "static" file in "/app/MyApp"? isn't it supposed to be the </p>
  
  <p>STATIC_ROOT?</p>
  
  <p>full traceback:</p>
  
  <pre><code>Running `python manage.py collectstatic --noinput` attached to terminal... up, r
  </code></pre>
  
  <p>un.9966</p>
  
  <pre><code>Traceback (most recent call last):
    File "manage.py", line 11, in &lt;module&gt;
        execute_from_command_line(sys.argv)
    File "/app/.heroku/python/lib/python2.7/sitepackages/django/core/management/_
  _init__.py", line 385, in execute_from_command_line
      utility.execute()
    File "/app/.heroku/python/lib/python2.7/sitepackages/django/core/management/_
  _init__.py", line 377, in execute
      self.fetch_command(subcommand).run_from_argv(self.argv)
    File "/app/.heroku/python/lib/python2.7/sitepackages/django/core/management/base.py",
  line 288, in run_from_argv
      self.execute(*args, **options.__dict__)
    File     "/app/.heroku/python/lib/python2.7/sitepackages/django/core/management/base.py",     line 338, in execute
      output = self.handle(*args, **options)
    File "/app/.heroku/python/lib/python2.7/sitepackages/django/core/management/base.py",     line 533, in handle
      return self.handle_noargs(**options)
    File "/app/.heroku/python/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 168, in handle_noargs
  collected = self.collect()
    File "/app/.heroku/python/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 98, in collect
  for path, storage in finder.list(self.ignore_patterns):
    File "/app/.heroku/python/lib/python2.7/sitepackages/django/contrib/staticfiles/finders.py", line 111, in list
  for path in utils.get_files(storage, ignore_patterns):
        File "/app/.heroku/python/lib/python2.7/sitepackages/django/contrib/staticfiles/utils.py", line 27, in get_files
  directories, files = storage.listdir(location)
        File "/app/.heroku/python/lib/python2.7/sitepackages/django/core/files/storage.py",     line 270, in listdir
  for entry in os.listdir(path):
  OSError: [Errno 2] No such file or directory: '/app/CTFdj/static'
  </code></pre>
  
  <p>edited:
  OSError: [Errno 2] No such file or directory: '/app/CTFdj/static' =>></p>
  
  <p>OSError: [Errno 2] No such file or directory: '/app/MyApp/static'</p>