Skip to content

Commit f72dfe3

Browse files
authored
Merge pull request DjangoGirls#1854 from mcagl/feature/check-tutorial-update-status
Update and cleanup of the tutorial after the update to newer python/django versions
2 parents fba1420 + 508cef2 commit f72dfe3

File tree

18 files changed

+37
-37
lines changed

18 files changed

+37
-37
lines changed

en/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ This tutorial is maintained by [DjangoGirls](https://djangogirls.org/). If you f
4646

4747
## Would you like to help us translate the tutorial into other languages?
4848

49-
Currently, translations are being kept on crowdin.com platform at:
49+
Currently, translations are being kept on the crowdin.com platform at:
5050

5151
https://crowdin.com/project/django-girls-tutorial
5252

Loading

en/css/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ Time to write some CSS! Open up the `blog/static/css/blog.css` file in your code
7070
We won't be going too deep into customizing and learning about CSS here. There is a recommendation for a free CSS course at the end of this page if you would like to learn more.
7171

7272
But let's do at least a little. Maybe we could change the color of our headers?
73-
To understand colors, computers use special codes. These codes start with `#` followed by 6 letters (A–F) and numbers (0–9). For example, the code for blue is `#0000FF`. You can find the color codes for many colors here: http://www.colorpicker.com/. You may also use [predefined colors](http://www.w3schools.com/colors/colors_names.asp), such as `red` and `green`.
73+
To understand colors, computers use special codes. These codes start with `#` followed by 6 letters (A–F) and numbers (0–9). For example, the code for blue is `#0000FF`. You can find the color codes for many colors here: https://www.colorpicker.com/. You may also use predefined [named colors](https://developer.mozilla.org/en-US/docs/Web/CSS/named-color), such as `red` and `green`.
74+
7475

7576
In your `blog/static/css/blog.css` file you should add the following code:
7677

@@ -91,8 +92,7 @@ We also identify elements by the attribute `class` or the attribute `id`. Class
9192
<a href="https://en.wikipedia.org/wiki/Django" class="external_link" id="link_to_wiki_page">
9293
```
9394

94-
You can read more about [CSS Selectors at w3schools](http://www.w3schools.com/cssref/css_selectors.asp).
95-
95+
You can read more about [CSS Selectors at MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_selectors).
9696
We also need to tell our HTML template that we added some CSS. Open the `blog/templates/blog/post_list.html` file in the code editor and add this line at the very beginning of it:
9797

9898
{% filename %}blog/templates/blog/post_list.html{% endfilename %}
@@ -162,7 +162,7 @@ Maybe we can customize the font in our header? Paste this into your `<head>` in
162162
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lobster&subset=latin,latin-ext">
163163
```
164164

165-
As before, check the order and place before the link to `blog/static/css/blog.css`. This line will import a font called *Lobster* from Google Fonts (https://www.google.com/fonts).
165+
Again, check the order and place it before the link to `blog/static/css/blog.css`. This line will import a font called *Lobster* from Google Fonts (https://www.google.com/fonts).
166166

167167
Find the `h1 a` declaration block (the code between braces `{` and `}`) in the CSS file `blog/static/css/blog.css`. Now add the line `font-family: 'Lobster';` between the braces, and refresh the page:
168168

en/deploy/images/deployment_cloud.png

-71 KB
Loading

en/deploy/images/deployment_local.png

-53.5 KB
Loading

en/deploy/pythonanywhere.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,6 @@ If you see an error while running the `pa_autoconfigure_django.py` script, here
8383

8484
If you see an error when you try to visit your site, the first place to look for some debugging info is in your **error log**. You'll find a link to this on the PythonAnywhere ["Web" page](https://www.pythonanywhere.com/web_app_setup/). See if there are any error messages in there; the most recent ones are at the bottom.
8585

86-
There are also some [general debugging tips on the PythonAnywhere help site](http://help.pythonanywhere.com/pages/DebuggingImportError).
86+
There are also some [general debugging tips on the PythonAnywhere help site](https://help.pythonanywhere.com/pages/DebuggingImportError).
8787

8888
And remember, your coach is here to help!

en/django_installation/instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ is copyrighted by Markus Zapke-Gründemann et al.
88

99
## Virtual environment
1010

11-
Before we install Django we will get you to install an extremely useful tool to help keep your coding environment tidy on your computer. It's possible to skip this step, but it's highly recommended. Starting with the best possible setup will save you a lot of trouble in the future!
11+
Before we install Django we will get you to install an extremely useful tool to help keep your coding environment tidy on your computer. It's possible to skip this step, but it's highly recommended to follow it. Starting with the best possible setup will save you a lot of trouble in the future!
1212

1313
So, let's create a **virtual environment** (also called a *virtualenv*). Virtualenv will isolate your Python/Django setup on a per-project basis. This means that any changes you make to one website won't affect any others you're also developing. Neat, right?
1414

@@ -125,7 +125,7 @@ C:\Users\Name\djangogirls> myvenv\Scripts\activate
125125
>```
126126
>C:\WINDOWS\system32> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
127127
> Execution Policy Change
128-
> The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose you to the security risks described in the about_Execution_Policies help topic at http://go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): A
128+
> The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose you to the security risks described in the about_Execution_Policies help topic at https://go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): A
129129
>```
130130
131131
<!-- (This comment separates the two blockquote blocks, so that GitBook and Crowdin don't merge them into a single block.) -->

en/django_orm/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ In this chapter you'll learn how Django connects to the database and stores data
77

88
A QuerySet is, in essence, a list of objects of a given Model. QuerySets allow you to read the data from the database, filter it and order it.
99

10-
It's easiest to learn by example. Let's try this, shall we?
10+
It's easier to learn by example. Let's try this, shall we?
1111

1212

1313
## Django shell

en/django_start_project/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ djangogirls
6464
```
6565
> **Note**: in your directory structure, you will also see your `myvenv` directory that we created before.
6666
67-
`manage.py` is a script that helps with management of the site. With it we will be able (amongst other things) to start a web server on our computer without installing anything else.
67+
`manage.py` is a script that helps with management of the site. With it we will be able (among other things) to start a web server on our computer without installing anything else.
6868

6969
The `settings.py` file contains the configuration of your website.
7070

@@ -77,7 +77,7 @@ Let's ignore the other files for now as we won't change them. The only thing to
7777

7878
Let's make some changes in `mysite/settings.py`. Open the file using the code editor you installed earlier.
7979

80-
**Note**: Keep in mind that `settings.py` is a regular file, like any other. You can open it from inside the code editor, using the "file -> open" menu actions. This should get you the usual window in which you can navigate to your `settings.py` file and select it. Alternatively, you can open the file by navigating to the djangogirls folder on your desktop and right-clicking on it. Then, select your code editor from the list. Selecting the editor is important as you might have other programs installed that can open the file but will not let you edit it.
80+
**Note**: Keep in mind that `settings.py` is a regular file, like any other. You can open it from inside the code editor, using the "File -> Open" menu action. This should get you the usual window in which you can navigate to your `settings.py` file and select it. Alternatively, you can open the file by navigating to the `djangogirls/` folder on your desktop and right-clicking on it. Then, select your code editor from the list. Selecting the editor is important as you might have other programs installed that can open the file but will not let you edit it.
8181

8282
It would be nice to have the correct time on our website. Go to [Wikipedia's list of time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) and copy your relevant time zone (TZ) (e.g. `Europe/Berlin`).
8383

@@ -102,7 +102,7 @@ We'll also need to add a path for static files. (We'll find out all about static
102102

103103
{% filename %}mysite/settings.py{% endfilename %}
104104
```python
105-
STATIC_URL = '/static/'
105+
STATIC_URL = 'static/'
106106
STATIC_ROOT = BASE_DIR / 'static'
107107
```
108108

Loading

0 commit comments

Comments
 (0)