Skip to content

Commit 188ed05

Browse files
committed
Updated Python and Django to the latest version
1 parent c6b1298 commit 188ed05

57 files changed

Lines changed: 115 additions & 115 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

en/chromebook_setup/instructions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ In your terminal at the bottom of the Cloud 9 interface, run the following:
4242
{% filename %}Cloud 9{% endfilename %}
4343
```
4444
sudo apt update
45-
sudo apt install python3.5-venv
45+
sudo apt install python3.6-venv
4646
```
4747

4848
If this still doesn't work, ask your coach for some help.
@@ -53,9 +53,9 @@ Next, run:
5353
```
5454
mkdir djangogirls
5555
cd djangogirls
56-
python3.5 -mvenv myvenv
56+
python3.6 -mvenv myvenv
5757
source myvenv/bin/activate
58-
pip install django~=1.10.0
58+
pip install django~=1.11.0
5959
```
6060

6161
(note that on the last line we use a tilde followed by an equal sign: ~=).

en/deploy/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,17 +180,17 @@ Just like you did on your own computer, you can create a virtualenv on PythonAny
180180
```
181181
$ cd my-first-blog
182182
183-
$ virtualenv --python=python3.5 myvenv
184-
Running virtualenv with interpreter /usr/bin/python3.5
183+
$ virtualenv --python=python3.6 myvenv
184+
Running virtualenv with interpreter /usr/bin/python3.6
185185
[...]
186186
Installing setuptools, pip...done.
187187
188188
$ source myvenv/bin/activate
189189
190-
(myvenv) $ pip install django~=1.10.0
190+
(myvenv) $ pip install django~=1.11.0
191191
Collecting django
192192
[...]
193-
Successfully installed django-1.10.4
193+
Successfully installed django-1.11.3
194194
```
195195

196196

@@ -219,7 +219,7 @@ Now our code is on PythonAnywhere, our virtualenv is ready, and the database is
219219

220220
Click back to the PythonAnywhere dashboard by clicking on its logo, and then click on the **Web** tab. Finally, hit **Add a new web app**.
221221

222-
After confirming your domain name, choose **manual configuration** (N.B. – *not* the "Django" option) in the dialog. Next choose **Python 3.5**, and click Next to finish the wizard.
222+
After confirming your domain name, choose **manual configuration** (N.B. – *not* the "Django" option) in the dialog. Next choose **Python 3.6**, and click Next to finish the wizard.
223223

224224
> **Note** Make sure you choose the "Manual configuration" option, not the "Django" one. We're too cool for the default PythonAnywhere Django setup. ;-)
225225
@@ -278,7 +278,7 @@ If you see an error when you try to visit your site, the first place to look for
278278

279279
- Making a mistake in the WSGI configuration file – did you get the path to your my-first-blog folder right?
280280

281-
- Did you pick the same version of Python for your virtualenv as you did for your web app? Both should be 3.5.
281+
- Did you pick the same version of Python for your virtualenv as you did for your web app? Both should be 3.6.
282282

283283
There are also some [general debugging tips on the PythonAnywhere wiki](https://www.pythonanywhere.com/wiki/DebuggingImportError).
284284

en/django_admin/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ Make sure that at least two or three posts (but not all) have the publish date s
4444

4545
![Django admin](images/edit_post3.png)
4646

47-
If you want to know more about Django admin, you should check Django's documentation: https://docs.djangoproject.com/en/1.10/ref/contrib/admin/
47+
If you want to know more about Django admin, you should check Django's documentation: https://docs.djangoproject.com/en/1.11/ref/contrib/admin/
4848

4949
This is probably a good moment to grab a coffee (or tea) or something to eat to re-energize yourself. You created your first Django model – you deserve a little break!

en/django_forms/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ Feel free to change the title or the text and save the changes!
352352

353353
Congratulations! Your application is getting more and more complete!
354354

355-
If you need more information about Django forms, you should read the documentation: https://docs.djangoproject.com/en/1.10/topics/forms/
355+
If you need more information about Django forms, you should read the documentation: https://docs.djangoproject.com/en/1.11/topics/forms/
356356

357357
## Security
358358

en/django_installation/instructions.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ To create a new `virtualenv`, you need to open the console (we told you about th
3838

3939
{% filename %}command-line{% endfilename %}
4040
```
41-
C:\Users\Name\djangogirls> C:\Python35\python -m venv myvenv
41+
C:\Users\Name\djangogirls> C:\Python36\python -m venv myvenv
4242
```
4343

44-
where `C:\Python35` is the directory in which you previously installed Python and `myvenv` is the name of your `virtualenv`. You can use any other name, but stick to lowercase and use no spaces, accents or special characters. It is also good idea to keep the name short – you'll be referencing it a lot!
44+
where `C:\Python36` is the directory in which you previously installed Python and `myvenv` is the name of your `virtualenv`. You can use any other name, but stick to lowercase and use no spaces, accents or special characters. It is also good idea to keep the name short – you'll be referencing it a lot!
4545

4646
<!--endsec-->
4747

@@ -85,7 +85,7 @@ $ python3 -m venv myvenv
8585
>{% filename %}command-line{% endfilename %}
8686
>```
8787
>$ sudo apt-get install python-virtualenv
88-
>$ virtualenv --python=python3.5 myvenv
88+
>$ virtualenv --python=python3.6 myvenv
8989
>```
9090
9191
> __NOTE:__ If you get an error like
@@ -99,7 +99,7 @@ $ python3 -m venv myvenv
9999
>
100100
>{% filename %}command-line{% endfilename %}
101101
>```
102-
>sudo apt install python3.5-venv
102+
>sudo apt install python3.6-venv
103103
>```
104104
105105
<!--endsec-->
@@ -167,15 +167,15 @@ Before we do that, we should make sure we have the latest version of `pip`, the
167167
(myvenv) ~$ pip install --upgrade pip
168168
```
169169
170-
Then run `pip install django~=1.10.0` (note that we use a tilde followed by an equal sign: `~=`) to install Django.
170+
Then run `pip install django~=1.11.0` (note that we use a tilde followed by an equal sign: `~=`) to install Django.
171171
172172
{% filename %}command-line{% endfilename %}
173173
```
174-
(myvenv) ~$ pip install django~=1.10.0
175-
Collecting django~=1.10.0
176-
Downloading Django-1.10.4-py2.py3-none-any.whl (6.8MB)
174+
(myvenv) ~$ pip install django~=1.11.0
175+
Collecting django~=1.11.0
176+
Downloading Django-1.11.3-py2.py3-none-any.whl (6.8MB)
177177
Installing collected packages: django
178-
Successfully installed django-1.10.4
178+
Successfully installed django-1.11.3
179179
```
180180
181181
<!--sec data-title="Windows" data-id="django_err_windows"
@@ -192,7 +192,7 @@ data-collapse=true ces-->
192192
>
193193
>{% filename %}command-line{% endfilename %}
194194
>```
195-
>C:\Users\Name\djangogirls> python -m pip install django~=1.10.0
195+
>C:\Users\Name\djangogirls> python -m pip install django~=1.11.0
196196
>```
197197
198198
<!--endsec-->

en/django_models/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Now we define the properties we were talking about: `title`, `text`, `created_da
155155
- `models.DateTimeField` – this is a date and time.
156156
- `models.ForeignKey` – this is a link to another model.
157157

158-
We will not explain every bit of code here since it would take too much time. You should take a look at Django's documentation if you want to know more about Model fields and how to define things other than those described above (https://docs.djangoproject.com/en/1.10/ref/models/fields/#field-types).
158+
We will not explain every bit of code here since it would take too much time. You should take a look at Django's documentation if you want to know more about Model fields and how to define things other than those described above (https://docs.djangoproject.com/en/1.11/ref/models/fields/#field-types).
159159

160160
What about `def publish(self):`? This is exactly the `publish` method we were talking about before. `def` means that this is a function/method and `publish` is the name of the method. You can change the name of the method if you want. The naming rule is that we use lowercase and underscores instead of spaces. For example, a method that calculates average price could be called `calculate_average_price`.
161161

en/django_urls/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,4 @@ If you try to visit http://127.0.0.1:8000/ now, then you'll find some sort of 'w
123123

124124
Your console is showing an error, but don't worry – it's actually pretty useful: It's telling you that there is __no attribute 'post_list'__. That's the name of the *view* that Django is trying to find and use, but we haven't created it yet. At this stage your `/admin/` will also not work. No worries – we will get there.
125125

126-
> If you want to know more about Django URLconfs, look at the official documentation: https://docs.djangoproject.com/en/1.10/topics/http/urls/
126+
> If you want to know more about Django URLconfs, look at the official documentation: https://docs.djangoproject.com/en/1.11/topics/http/urls/

en/django_views/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ Another error! Read what's going on now:
3939

4040
This shows that the server is running again, at least, but it still doesn't look right, does it? Don't worry, it's just an error page, nothing to be scared of! Just like the error messages in the console, these are actually pretty useful. You can read that the *TemplateDoesNotExist*. Let's fix this bug and create a template in the next chapter!
4141

42-
> Learn more about Django views by reading the official documentation: https://docs.djangoproject.com/en/1.10/topics/http/views/
42+
> Learn more about Django views by reading the official documentation: https://docs.djangoproject.com/en/1.11/topics/http/views/

en/python_installation/instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ In upcoming steps, you'll be using the Windows Command Line (which we'll also te
1919

2020
Note: if you are using an older version of Windows (7, Vista, or any older version) and the Python 3.6.x installer fails with an error, you can try either:
2121
1. install all Windows Updates and try to install Python 3.6 again; or
22-
2. install an [older version of Python](https://www.python.org/downloads/windows/), e.g., [3.6.1](https://www.python.org/downloads/release/python-366/).
22+
2. install an [older version of Python](https://www.python.org/downloads/windows/), e.g., [3.6.1](https://www.python.org/downloads/release/python-361/).
2323

2424
If you install an older version of Python, the installation screen may look a bit different than shown above. Make sure you scroll down to see "Add python.exe to Path", then click the button on the left and pick "Will be installed on local hard drive":
2525

@@ -62,7 +62,7 @@ Type this command into your console:
6262

6363
{% filename %}command-line{% endfilename %}
6464
```
65-
$ sudo apt-get install python3.5
65+
$ sudo apt-get install python3.6
6666
```
6767

6868
<!--endsec-->

en/python_introduction/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ We want to open up a Python console, so type in `python` on Windows or `python3`
1717
{% filename %}command-line{% endfilename %}
1818
```
1919
$ python3
20-
Python 3.5.1 (...)
20+
Python 3.6.1 (...)
2121
Type "help", "copyright", "credits" or "license" for more information.
2222
>>>
2323
```

0 commit comments

Comments
 (0)