From d4fb9f75f1686a152058ec29d53a09d7e4240211 Mon Sep 17 00:00:00 2001 From: Dayanne Fernandes Date: Wed, 11 Jul 2018 14:55:51 -0300 Subject: [PATCH] make django version more flexiable with a gitbook variable --- book.json | 3 +++ en/django_installation/instructions.md | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/book.json b/book.json index 90e65651cf9..3d2d67033f4 100644 --- a/book.json +++ b/book.json @@ -1,5 +1,8 @@ { "gitbook": ">=3.2.0", + "variables": { + "django_version": "2.0.6" + }, "links": { "sidebar": { "Need help? Talk to us!": "https://gitter.im/DjangoGirls/tutorial" diff --git a/en/django_installation/instructions.md b/en/django_installation/instructions.md index 4f20dd70f26..3a06e68bf83 100644 --- a/en/django_installation/instructions.md +++ b/en/django_installation/instructions.md @@ -183,18 +183,18 @@ In your `djangogirls/requirements.txt` file you should add the following text: {% filename %}djangogirls/requirements.txt{% endfilename %} ``` -Django==2.0.6 +Django=={{ book.django_version }} ``` -Now, run ``pip install -r requirements.txt`` to install Django. +Now, run `pip install -r requirements.txt` to install Django. {% filename %}command-line{% endfilename %} ``` (myvenv) ~$ pip install -r requirements.txt -Collecting Django==2.0.6 (from -r requirements.txt (line 1)) - Downloading Django-2.0.6-py3-none-any.whl (7.1MB) +Collecting Django=={{ book.django_version }} (from -r requirements.txt (line 1)) + Downloading Django-{{ book.django_version }}-py3-none-any.whl (7.1MB) Installing collected packages: Django -Successfully installed Django-2.0.6 +Successfully installed Django-{{ book.django_version }} ```