title: How to use startproject (django-admin.py) if there is already a django project?
body: <p>I am trying to start a new django project (using <code>django-admin.py</code>) but unfortunately I'm always getting the following error:</p>
  
  <pre><code>C:\Users\NAME\dev\django&gt;django-admin.py startproject foo
  Usage: django-admin.py subcommand [options] [args]
  [...]
  </code></pre>
  
  <p>The same applies to any other command of <code>django-admin.py</code> - every command does not exist.</p>
  
  <p>I already have a django projects (in <code>C:\Users\NAME\dev\django\blog</code>) and I know that the startproject command is disabled if <code>DJANGO_SETTINGS_MODULE</code> is set, but when I try this:</p>
  
  <pre><code>&gt;&gt;&gt; import os
  &gt;&gt;&gt; os.environ['DJANGO_SETTINGS_MODULE']
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "C:\Python26\lib\os.py", line 423, in __getitem__
      return self.data[key.upper()]
  KeyError: 'DJANGO_SETTINGS_MODULE'
  </code></pre>
  
  <p>Or even better this:</p>
  
  <pre><code>&gt;&gt;&gt; from django.conf import settings
  &gt;&gt;&gt; dir(settings)
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "C:\Python26\lib\site-packages\django\utils\functional.py", line 306, in __dir__
      self._setup()
    File "C:\Python26\lib\site-packages\django\conf\__init__.py", line 38, in _set up raise ImportError("Settings cannot be imported, because environment variable %s is undefined." % ENVIRONMENT_VARIABLE)
  ImportError: Settings cannot be imported, because environment variable DJANGO_SE TTINGS_MODULE is undefined.
  </code></pre>
  
  <p>It seems that <code>DJANGO_SETTINGS_MODULE</code> is undefined. Does anyone have an idea why I can't use <code>django-admin.py</code>?</p>
  
  <p><em>Django 1.2.3, Windows 7 (64bit)</em></p>