Skip to content

Commit d4fb9f7

Browse files
committed
make django version more flexiable with a gitbook variable
1 parent 49705de commit d4fb9f7

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

book.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"gitbook": ">=3.2.0",
3+
"variables": {
4+
"django_version": "2.0.6"
5+
},
36
"links": {
47
"sidebar": {
58
"Need help? Talk to us!": "https://gitter.im/DjangoGirls/tutorial"

en/django_installation/instructions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,18 +183,18 @@ In your `djangogirls/requirements.txt` file you should add the following text:
183183
184184
{% filename %}djangogirls/requirements.txt{% endfilename %}
185185
```
186-
Django==2.0.6
186+
Django=={{ book.django_version }}
187187
```
188188
189-
Now, run ``pip install -r requirements.txt`` to install Django.
189+
Now, run `pip install -r requirements.txt` to install Django.
190190
191191
{% filename %}command-line{% endfilename %}
192192
```
193193
(myvenv) ~$ pip install -r requirements.txt
194-
Collecting Django==2.0.6 (from -r requirements.txt (line 1))
195-
Downloading Django-2.0.6-py3-none-any.whl (7.1MB)
194+
Collecting Django=={{ book.django_version }} (from -r requirements.txt (line 1))
195+
Downloading Django-{{ book.django_version }}-py3-none-any.whl (7.1MB)
196196
Installing collected packages: Django
197-
Successfully installed Django-2.0.6
197+
Successfully installed Django-{{ book.django_version }}
198198
```
199199
200200
<!--sec data-title="Installing Django: Windows" data-id="django_err_windows"

0 commit comments

Comments
 (0)