Skip to content

Commit

Permalink
Fixed #19344: note for users of Windows + virtualenv
Browse files Browse the repository at this point in the history
  • Loading branch information
azza-bazoo committed Nov 22, 2012
1 parent 3fb8372 commit 8a30b18
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/intro/tutorial01.txt
Expand Up @@ -72,6 +72,17 @@ work, see :doc:`Troubleshooting </faq/troubleshooting>`.
</ref/django-admin>` is installed, then run the command
``sudo chmod +x django-admin.py``.

.. admonition:: Running virtualenv on Windows

If you used virtualenv_ to :ref:`install Django <installing-official-release>`
on Windows, you may get an ImportError when you try to run
``django-admin.py startproject``. This is because Windows does not run the
Python interpreter from your virtual environment unless you invoke it
directly. Instead, prefix all commands that use .py files with ``python``,
like so: ``python django-admin.py startproject mysite``.

.. _virtualenv: http://www.virtualenv.org/

.. note::

You'll need to avoid naming projects after built-in Python or Django
Expand Down

0 comments on commit 8a30b18

Please sign in to comment.