Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
1d972550
Kaydet (Commit)
1d972550
authored
Eyl 19, 2018
tarafından
Thomas Grainger
Kaydeden (comit)
Tim Graham
Eyl 19, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[2.1.x] Updated contributing tutorial's virtual environment instructions.
Backport of
c99d379f
from master
üst
322b70f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
32 deletions
+19
-32
djangodocs.py
docs/_ext/djangodocs.py
+2
-0
contributing.txt
docs/intro/contributing.txt
+17
-32
No files found.
docs/_ext/djangodocs.py
Dosyayı görüntüle @
1d972550
...
@@ -320,6 +320,8 @@ class ConsoleDirective(CodeBlock):
...
@@ -320,6 +320,8 @@ class ConsoleDirective(CodeBlock):
return
'runtests.py '
+
args_to_win
(
line
[
15
:])
return
'runtests.py '
+
args_to_win
(
line
[
15
:])
if
line
.
startswith
(
'$ ./'
):
if
line
.
startswith
(
'$ ./'
):
return
args_to_win
(
line
[
4
:])
return
args_to_win
(
line
[
4
:])
if
line
.
startswith
(
'$ python3'
):
return
'py '
+
args_to_win
(
line
[
9
:])
if
line
.
startswith
(
'$ python'
):
if
line
.
startswith
(
'$ python'
):
return
'py '
+
args_to_win
(
line
[
8
:])
return
'py '
+
args_to_win
(
line
[
8
:])
if
line
.
startswith
(
'$ '
):
if
line
.
startswith
(
'$ '
):
...
...
docs/intro/contributing.txt
Dosyayı görüntüle @
1d972550
...
@@ -117,38 +117,22 @@ Download the Django source code repository using the following command:
...
@@ -117,38 +117,22 @@ Download the Django source code repository using the following command:
Now that you have a local copy of Django, you can install it just like you would
Now that you have a local copy of Django, you can install it just like you would
install any package using ``pip``. The most convenient way to do so is by using
install any package using ``pip``. The most convenient way to do so is by using
a *virtual environment*
(or virtualenv) which is a feature built into Python
a *virtual environment*
, which is a feature built into Python that allows you
t
hat allows you to keep a separate directory of installed packages for each of
t
o keep a separate directory of installed packages for each of your projects so
your projects so
that they don't interfere with each other.
that they don't interfere with each other.
It's a good idea to keep all your virtual
envs in one place, for example in
It's a good idea to keep all your virtual
environments in one place, for
``.virtualenvs/`` in your home directory. Create it if it doesn't exist yet:
example in ``.virtualenvs/`` in your home directory.
.. console::
Create a new virtual environment by running:
$ mkdir ~/.virtualenvs
Now create a new virtualenv by running:
.. console::
.. console::
$ python -m venv ~/.virtualenvs/djangodev
$ python
3
-m venv ~/.virtualenvs/djangodev
The path is where the new environment will be saved on your computer.
The path is where the new environment will be saved on your computer.
.. admonition:: For Ubuntu users
The final step in setting up your virtual environment is to activate it:
On some versions of Ubuntu the above command might fail. Use the
``virtualenv`` package instead, first making sure you have ``pip3``:
.. code-block:: console
$ sudo apt-get install python3-pip
$ # Prefix the next command with sudo if it gives a permission denied error
$ pip3 install virtualenv
$ virtualenv --python=`which python3` ~/.virtualenvs/djangodev
The final step in setting up your virtualenv is to activate it:
.. code-block:: console
.. code-block:: console
...
@@ -162,22 +146,23 @@ If the ``source`` command is not available, you can try using a dot instead:
...
@@ -162,22 +146,23 @@ If the ``source`` command is not available, you can try using a dot instead:
.. admonition:: For Windows users
.. admonition:: For Windows users
To activate your virtual
env
on Windows, run:
To activate your virtual
environment
on Windows, run:
.. code-block:: doscon
.. code-block:: doscon
...\> %HOMEPATH%\.virtualenvs\djangodev\Scripts\activate.bat
...\> %HOMEPATH%\.virtualenvs\djangodev\Scripts\activate.bat
You have to activate the virtualenv whenever you open a new terminal window.
You have to activate the virtual environment whenever you open a new
virtualenvwrapper__ is a useful tool for making this more convenient.
terminal window. virtualenvwrapper__ is a useful tool for making this
more convenient.
__ https://virtualenvwrapper.readthedocs.io/en/latest/
__ https://virtualenvwrapper.readthedocs.io/en/latest/
Anything you install through ``pip`` from now on will be installed in your new
The name of the currently activated virtual environment is displayed on the
virtualenv, isolated from other environments and system-wide packages. Also, the
command line to help you keep track of which one you are using. Anything you
name of the currently activated virtualenv is displayed on the command line to
install through ``pip`` while this name is displayed will be installed in that
help you keep track of which one you are using. Go ahead and install the
virtual environment, isolated from other environments and system-wide packages.
previously cloned copy of Django:
Go ahead and install the
previously cloned copy of Django:
.. console::
.. console::
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment