Fixed #30816 -- Doc'd how to create projects with a local copy of Django.
This commit is contained in:
parent
90abdba086
commit
dee687e93a
|
@ -177,15 +177,27 @@ command line to help you keep track of which one you are using. Anything you
|
||||||
install through ``pip`` while this name is displayed will be installed in that
|
install through ``pip`` while this name is displayed will be installed in that
|
||||||
virtual environment, isolated from other environments and system-wide packages.
|
virtual environment, isolated from other environments and system-wide packages.
|
||||||
|
|
||||||
|
.. _intro-contributing-install-local-copy:
|
||||||
|
|
||||||
Go ahead and install the previously cloned copy of Django:
|
Go ahead and install the previously cloned copy of Django:
|
||||||
|
|
||||||
.. console::
|
.. console::
|
||||||
|
|
||||||
$ python -m pip install -e /path/to/your/local/clone/django/
|
$ python -m pip install -e /path/to/your/local/clone/django/
|
||||||
|
|
||||||
The installed version of Django is now pointing at your local copy. You will
|
The installed version of Django is now pointing at your local copy by installing
|
||||||
immediately see any changes you make to it, which is of great help when writing
|
in editable mode. You will immediately see any changes you make to it, which is
|
||||||
your first patch.
|
of great help when writing your first patch.
|
||||||
|
|
||||||
|
Creating projects with a local copy of Django
|
||||||
|
---------------------------------------------
|
||||||
|
|
||||||
|
It may be helpful to test your local changes with a Django project. First you
|
||||||
|
have to create a new virtual environment, :ref:`install the previously cloned
|
||||||
|
local copy of Django in editable mode <intro-contributing-install-local-copy>`,
|
||||||
|
and create a new Django project outside of your local copy of Django. You will
|
||||||
|
immediately see any changes you make to Django in your new project, which is
|
||||||
|
of great help when writing your first patch.
|
||||||
|
|
||||||
Running Django's test suite for the first time
|
Running Django's test suite for the first time
|
||||||
==============================================
|
==============================================
|
||||||
|
|
Loading…
Reference in New Issue