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 }} ```