Skip to content

Commit 14a8300

Browse files
committed
Merge branch 'language_code' of https://github.com/dns2utf8/tutorial into dns2utf8-language_code
2 parents 83d5b46 + fb185fd commit 14a8300

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

en/django_start_project/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,14 @@ 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.
88+
Change the language code by changing the following line:
89+
90+
{% filename %}mysite/settings.py{% endfilename %}
91+
```python
92+
LANGUAGE_CODE = 'de-ch'
93+
```
94+
8795
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`:
8896

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

0 commit comments

Comments
 (0)