Skip to content

Commit f589a05

Browse files
committed
Add more info about LANGUAGE_CODE
1 parent 14a8300 commit f589a05

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

en/django_start_project/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,16 @@ In `settings.py`, find the line that contains `TIME_ZONE` and modify it to choos
8484
TIME_ZONE = 'Europe/Berlin'
8585
```
8686

87-
A language code consist of the language, e.g. `en` for english or `de` for german, and the country code, e.g. `de` for germany or `ch` for switzerland.
87+
A language code consist of the language, e.g. `en` for english or `de` for german, and the country code, e.g. `de` for germany or `ch` for switzerland. You will want to add this if you want the default buttons and notifications from Django to be in your language. So you would have "Cancel" button translated into the language you defined here. [Django comes with a lot of prepared translations](https://docs.djangoproject.com/en/1.11/ref/settings/#language-code).
88+
8889
Change the language code by changing the following line:
8990

9091
{% filename %}mysite/settings.py{% endfilename %}
9192
```python
9293
LANGUAGE_CODE = 'de-ch'
9394
```
9495

96+
9597
We'll also need to add a path for static files. (We'll find out all about static files and CSS later in the tutorial.) Go down to the *end* of the file, and just underneath the `STATIC_URL` entry, add a new one called `STATIC_ROOT`:
9698

9799
{% filename %}mysite/settings.py{% endfilename %}

0 commit comments

Comments
 (0)