Commit 5d4f993b authored by Angeline Tan's avatar Angeline Tan Committed by Julien Phalip
Browse files

Moved a note about django-admin.py errors from Tutorial Part 1 to a new FAQ...

Moved a note about django-admin.py errors from Tutorial Part 1 to a new FAQ Troubleshooting page. This is to avoid confusion for beginners.
parent 19786352
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -12,3 +12,4 @@ Django FAQ
   models
   admin
   contributing
   troubleshooting
 No newline at end of file
+16 −0
Original line number Diff line number Diff line
===============
Troubleshooting
===============

This page contains some advice about errors and problems commonly encountered
during the development of Django applications.

"command not found: django-admin.py"
------------------------------------

:doc:`django-admin.py </ref/django-admin>` should be on your system path if you
installed Django via ``python setup.py``. If it's not on your path, you can
find it in ``site-packages/django/bin``, where ``site-packages`` is a directory
within your Python installation. Consider symlinking to :doc:`django-admin.py
</ref/django-admin>` from some place on your path, such as
:file:`/usr/local/bin`.
 No newline at end of file
+2 −8
Original line number Diff line number Diff line
@@ -52,7 +52,8 @@ code, then run the following command:

   django-admin.py startproject mysite

This will create a ``mysite`` directory in your current directory.
This will create a ``mysite`` directory in your current directory.  If it didn't 
work, see :doc:`Troubleshooting </faq/troubleshooting>`.

.. admonition:: Script name may differ in distribution packages

@@ -78,13 +79,6 @@ This will create a ``mysite`` directory in your current directory.
    ``django`` (which will conflict with Django itself) or ``test`` (which
    conflicts with a built-in Python package).

:doc:`django-admin.py </ref/django-admin>` should be on your system path if you
installed Django via ``python setup.py``. If it's not on your path, you can find
it in ``site-packages/django/bin``, where ``site-packages`` is a directory
within your Python installation. Consider symlinking to :doc:`django-admin.py
</ref/django-admin>` from some place on your path, such as
:file:`/usr/local/bin`.

.. admonition:: Where should this code live?

    If your background is in PHP, you're probably used to putting code under the