Skip to content

Commit

Permalink
make django version more flexiable with a gitbook variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Dayof committed Jul 11, 2018
1 parent 49705de commit d4fb9f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions book.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
10 changes: 5 additions & 5 deletions en/django_installation/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
```
<!--sec data-title="Installing Django: Windows" data-id="django_err_windows"
Expand Down

0 comments on commit d4fb9f7

Please sign in to comment.