title: Django: Could not import settings
body: <p>I ran this command:</p>
  
  <pre><code>python manage.py runserver 0.0.0.0:8000
  </code></pre>
  
  <p>get error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "manage.py", line 11, in &lt;module&gt;
      execute_from_command_line(sys.argv)
    File "/usr/lib/python2.6/site-packages/django/core/management/__init__.py", line 399, in    execute_from_command_line
      utility.execute()
    File "/usr/lib/python2.6/site-packages/django/core/management/__init__.py", line 392, in execute
      self.fetch_command(subcommand).run_from_argv(self.argv)
    File "/usr/lib/python2.6/site-packages/django/core/management/__init__.py", line 261, in fetch_command
      commands = get_commands()
    File "/usr/lib/python2.6/site-packages/django/core/management/__init__.py", line 107, in get_commands
      apps = settings.INSTALLED_APPS
    File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 54, in __getattr__
      self._setup(name)
    File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 49, in _setup
      self._wrapped = Settings(settings_module)
    File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 132, in __init__
  % (self.SETTINGS_MODULE, e)
  ImportError: Could not import settings 'mysite2.settings.settings_custom' (Is it on sys.path? Is there an import error in the settings file?): No module named mysite2.settings.settings_custom
  </code></pre>
  
  <p>Here's my manage.py:</p>
  
  <pre><code>#!/usr/bin/env python
  import os
  import sys
  
  if __name__ == "__main__":
      sys.path.append('/home/ec2-user/mysite2/mysite2/settings/settings_custom')
      os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite2.settings.settings_custom")
  
      from django.core.management import execute_from_command_line
  
      execute_from_command_line(sys.argv)
  </code></pre>
  
  <p>Here's the file locations:</p>
  
  <p>mysite2</p>
  
  <p>inside mysite2,</p>
  
  <ul>
  <li>manage.py
  <li>mysite2 (A folder)
  </ul>
  
  <p>Inside mysite2,</p>
  
  <ul>
  <li>urls.py
  <li>wsgi.py
  <li>settings (A folder)
  </ul>
  
  <p>Inside settings</p>
  
  <ul>
  <li>__init__.py</li>
  <li>__init__.pyc</li>
  <li>settings_custom.py</li>
  <li>settings_default.py</li>
  </ul>
  
  <p>How should I import the path to sys.path? Very new to Django, thanks very much.</p>