You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: en/deploy/README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -180,17 +180,17 @@ Just like you did on your own computer, you can create a virtualenv on PythonAny
180
180
```
181
181
$ cd my-first-blog
182
182
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
185
185
[...]
186
186
Installing setuptools, pip...done.
187
187
188
188
$ source myvenv/bin/activate
189
189
190
-
(myvenv) $ pip install django~=1.10.0
190
+
(myvenv) $ pip install django~=1.11.0
191
191
Collecting django
192
192
[...]
193
-
Successfully installed django-1.10.4
193
+
Successfully installed django-1.11.3
194
194
```
195
195
196
196
@@ -219,7 +219,7 @@ Now our code is on PythonAnywhere, our virtualenv is ready, and the database is
219
219
220
220
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**.
221
221
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.
223
223
224
224
> **Note** Make sure you choose the "Manual configuration" option, not the "Django" one. We're too cool for the default PythonAnywhere Django setup. ;-)
225
225
@@ -278,7 +278,7 @@ If you see an error when you try to visit your site, the first place to look for
278
278
279
279
- Making a mistake in the WSGI configuration file – did you get the path to your my-first-blog folder right?
280
280
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.
282
282
283
283
There are also some [general debugging tips on the PythonAnywhere wiki](https://www.pythonanywhere.com/wiki/DebuggingImportError).
Copy file name to clipboardExpand all lines: en/django_admin/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,6 @@ Make sure that at least two or three posts (but not all) have the publish date s
44
44
45
45

46
46
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/
48
48
49
49
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!
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!
45
45
46
46
<!--endsec-->
47
47
@@ -85,7 +85,7 @@ $ python3 -m venv myvenv
85
85
>{% filename %}command-line{% endfilename %}
86
86
>```
87
87
>$ sudo apt-get install python-virtualenv
88
-
>$ virtualenv --python=python3.5 myvenv
88
+
>$ virtualenv --python=python3.6 myvenv
89
89
>```
90
90
91
91
> __NOTE:__ If you get an error like
@@ -99,7 +99,7 @@ $ python3 -m venv myvenv
99
99
>
100
100
>{% filename %}command-line{% endfilename %}
101
101
>```
102
-
>sudo apt install python3.5-venv
102
+
>sudo apt install python3.6-venv
103
103
>```
104
104
105
105
<!--endsec-->
@@ -167,15 +167,15 @@ Before we do that, we should make sure we have the latest version of `pip`, the
167
167
(myvenv) ~$ pip install --upgrade pip
168
168
```
169
169
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.
Copy file name to clipboardExpand all lines: en/django_models/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -155,7 +155,7 @@ Now we define the properties we were talking about: `title`, `text`, `created_da
155
155
-`models.DateTimeField` – this is a date and time.
156
156
-`models.ForeignKey` – this is a link to another model.
157
157
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).
159
159
160
160
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`.
Copy file name to clipboardExpand all lines: en/django_urls/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff 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
123
123
124
124
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.
125
125
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/
Copy file name to clipboardExpand all lines: en/django_views/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,4 +39,4 @@ Another error! Read what's going on now:
39
39
40
40
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!
41
41
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/
Copy file name to clipboardExpand all lines: en/python_installation/instructions.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ In upcoming steps, you'll be using the Windows Command Line (which we'll also te
19
19
20
20
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:
21
21
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/).
23
23
24
24
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":
25
25
@@ -62,7 +62,7 @@ Type this command into your console:
0 commit comments