mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #23067 -- Updated docs to use django-admin
This commit is contained in:
committed by
Tim Graham
parent
66630f589c
commit
d47409831f
@@ -55,7 +55,7 @@ The ``WSGIAuthUserScript`` directive tells mod_wsgi to execute the
|
||||
``check_password`` function in specified wsgi script, passing the user name and
|
||||
password that it receives from the prompt. In this example, the
|
||||
``WSGIAuthUserScript`` is the same as the ``WSGIScriptAlias`` that defines your
|
||||
application :doc:`that is created by django-admin.py startproject
|
||||
application :doc:`that is created by django-admin startproject
|
||||
</howto/deployment/wsgi/index>`.
|
||||
|
||||
.. admonition:: Using Apache 2.2 with authentication
|
||||
|
||||
@@ -78,7 +78,7 @@ Here's an example command to start a uWSGI server::
|
||||
|
||||
This assumes you have a top-level project package named ``mysite``, and
|
||||
within it a module :file:`mysite/wsgi.py` that contains a WSGI ``application``
|
||||
object. This is the layout you'll have if you ran ``django-admin.py
|
||||
object. This is the layout you'll have if you ran ``django-admin
|
||||
startproject mysite`` (using your own project name in place of ``mysite``) with
|
||||
a recent version of Django. If this file doesn't exist, you'll need to create
|
||||
it. See the :doc:`/howto/deployment/wsgi/index` documentation for the default
|
||||
|
||||
@@ -60,7 +60,7 @@ In the command prompt, execute the following command: ``pip install django``.
|
||||
This will download and install Django.
|
||||
|
||||
After the installation has completed, you can verify your Django installation
|
||||
by executing ``django-admin.py --version`` in the command prompt.
|
||||
by executing ``django-admin --version`` in the command prompt.
|
||||
|
||||
.. versionchanged:: 1.7
|
||||
|
||||
@@ -73,7 +73,7 @@ with Django.
|
||||
Common pitfalls
|
||||
===============
|
||||
|
||||
* If ``django-admin.py`` only displays the help text no matter what arguments
|
||||
* If ``django-admin`` only displays the help text no matter what arguments
|
||||
it is given, there is probably a problem with the file association in
|
||||
Windows. Check if there is more than one environment variable set for
|
||||
running Python scripts in ``PATH``. This usually occurs when there is more
|
||||
@@ -86,7 +86,3 @@ Common pitfalls
|
||||
|
||||
set http_proxy=http://username:password@proxyserver:proxyport
|
||||
set https_proxy=https://username:password@proxyserver:proxyport
|
||||
|
||||
* Executing ``django-admin.py`` opens up a text file. This is due to the text
|
||||
editor being the default program for ``.py`` files. This must be changed
|
||||
to the ``python.exe`` located in the folder where Python is installed.
|
||||
|
||||
Reference in New Issue
Block a user