Skip to content

Commit

Permalink
Moved a note about django-admin.py errors from Tutorial Part 1 to a n…
Browse files Browse the repository at this point in the history
…ew FAQ Troubleshooting page. This is to avoid confusion for beginners.
  • Loading branch information
Agilemeister authored and jphalip committed Aug 5, 2012
1 parent 1978635 commit 5d4f993
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
3 changes: 2 additions & 1 deletion docs/faq/index.txt
Expand Up @@ -11,4 +11,5 @@ Django FAQ
help help
models models
admin admin
contributing contributing
troubleshooting
16 changes: 16 additions & 0 deletions docs/faq/troubleshooting.txt
@@ -0,0 +1,16 @@
===============
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`.
10 changes: 2 additions & 8 deletions docs/intro/tutorial01.txt
Expand Up @@ -52,7 +52,8 @@ code, then run the following command:


django-admin.py startproject mysite 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 .. admonition:: Script name may differ in distribution packages


Expand All @@ -78,13 +79,6 @@ This will create a ``mysite`` directory in your current directory.
``django`` (which will conflict with Django itself) or ``test`` (which ``django`` (which will conflict with Django itself) or ``test`` (which
conflicts with a built-in Python package). 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? .. admonition:: Where should this code live?


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

0 comments on commit 5d4f993

Please sign in to comment.