Skip to content

Commit

Permalink
Replace {% load staticfiles %} with {% load static %}
Browse files Browse the repository at this point in the history
  • Loading branch information
bulv1ne committed Jun 20, 2018
1 parent 7731344 commit c998673
Show file tree
Hide file tree
Showing 30 changed files with 40 additions and 40 deletions.
4 changes: 2 additions & 2 deletions de/css/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ In einer CSS-Datei werden Stile für Elemente der HTML-Datei festgelegt. Die Ele
Dann musst du auch deiner HTML-Vorlage sagen, dass wir CSS aus einer externen Datei laden wollen. Öffne dazu die Datei `blog/templates/blog/post_list.html` und füge folgende Zeile ganz am Anfang der Datei an:

```html
{% load staticfiles %}
{% load static %}
```

Hier laden wir nur statische Dateien :). Dann fügst du zwischen `<head>` und `</head>`, nach dem Link auf die Bootstrap-CSS-Dateien die folgenden Zeilen an (Der Browser liest die Dateien in der Reihenfolge, wie sie angegeben sind, ein, so dass dein CSS möglicherweise den Code in den Bootstrap-Dateien überschreibt.):
Expand All @@ -103,7 +103,7 @@ Wir haben unserer Vorlage gerade gesagt, wo sich die CSS-Datei befindet.
Deine Datei sollte jetzt so aussehen:

```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
2 changes: 1 addition & 1 deletion de/django_forms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Merk dir, dass wir unseren neuen View `post_new` nennen wollen.
Nach Hinzufügen der Zeile sieht deine HTML-Datei so aus:

```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
2 changes: 1 addition & 1 deletion de/template_extending/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ blog
Öffne sie, kopiere alles von `post_list.html` und füge es wie folgt in die `base.html`-Datei ein:

```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
4 changes: 2 additions & 2 deletions en/css/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ We also need to tell our HTML template that we added some CSS. Open the `blog/te

{% filename %}blog/templates/blog/post_list.html{% endfilename %}
```html
{% load staticfiles %}
{% load static %}
```

We're just loading static files here. :)
Expand All @@ -114,7 +114,7 @@ Your file should now look like this:

{% filename %}blog/templates/blog/post_list.html{% endfilename %}
```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
2 changes: 1 addition & 1 deletion en/django_forms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ After adding the line, your HTML file should now look like this:

{% filename %}blog/templates/blog/base.html{% endfilename %}
```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
2 changes: 1 addition & 1 deletion en/template_extending/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Then open it up and copy everything from `post_list.html` to `base.html` file, l

{% filename %}blog/templates/blog/base.html{% endfilename %}
```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
4 changes: 2 additions & 2 deletions fr/css/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Nous vous conseillons d'en apprendre un peu plus sur les sélecteurs CSS sur [w3
Afin que nos modifications fonctionnent, nous devons aussi signaler à notre template HTML que nous utilisons des CSS. Ouvrez le fichier `blog/templates/blog/post_list.html` et ajoutez cette ligne au tout début de celui-ci :

```html
{% load staticfiles %}
{% load static %}
```

Hop, nous chargeons les fichiers statiques :). Pour l'ajout de code suivant, gardez en tête que le navigateur lit vos fichiers dans l'ordre dans lequel ils lui sont donnés : en le plaçant à l'endroit que nous vous indiquons, vous allez pouvoir remplacer du code provenant des fichiers Boostrap par le vôtre. Donc, entre le `<head>` et le `</head>` et après les liens vers les fichiers CSS de Boostrap, ajoutez ceci :
Expand All @@ -109,7 +109,7 @@ Nous venons simplement de dire à notre template où nous avons rangé notre fic
Maintenant, votre fichier doit ressembler à ceci :

```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
2 changes: 1 addition & 1 deletion fr/django_forms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Remarquez que notre nouvelle vue s'appelle `post_new`.
Après avoir ajouté cette ligne, votre fichier html devrait maintenant ressembler à ceci :

```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
2 changes: 1 addition & 1 deletion fr/template_extending/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Créons le fichier `base.html` dans le dossier `blog/templates/blog/` :
Ensuite, ouvrez ce fichier `base.html` et collez-y tout ce qui se trouve dans le fichier `post_list.html`. Ça devrait ressembler à ça :

```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
4 changes: 2 additions & 2 deletions hu/css/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Olvass utána a [CSS szelektorokról a w3schools oldalán][4].
Mindezek után közölnünk kell a HTML fájlunkkal is, hogy hozzáadtunk pár CSS-t. Nyisd meg a `blog/templates/blog/post_list.html` fájlt és add a következő sort a fájl legelejére:

```html
{% load staticfiles %}
{% load static %}
```

Itt csak betöltünk pár statikus fájlt :). Ezután a `<head>` és a `</head>` tagek közé, a Bootstrap CSS fájlok linkjei után (a böngésző olyan sorrendben olvassa az egyes fájlokat, amilyenben követik egymást, tehát a mi fájlunkban lévő kód lehet, hogy felülír pár kódot a Bootstrap fájlban), a következő sort add:
Expand All @@ -107,7 +107,7 @@ Most megmondtuk a template-ünknek, hol találja a CSS fájlokat.
Így kellene kinéznie a fájlodnak:

```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
2 changes: 1 addition & 1 deletion hu/django_forms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Figyelem: az új nézetünket `post_new`-nak fogjuk hívni. A `"glyphicon glyphi
Miután hozzáadtad ezt a sort, így fog kinézni a html fájlod:

```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
2 changes: 1 addition & 1 deletion hu/template_extending/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Hozz létre egy `base.html` fájlt a `blog/templates/blog/`-ban:
Majd nyisd meg, és másolj át mindent a `post_list.html`-ből a `base.html`-be, így:

```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
4 changes: 2 additions & 2 deletions ko/css/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ W3Schools에서 [CSS 선택자](https://www.w3schools.com/cssref/css_selectors.a

{% filename %}blog/templates/blog/post_list.html{% endfilename %}
```html
{% load staticfiles %}
{% load static %}
```

여기에서 동적 파일을 로딩하는 거에요. :)
Expand All @@ -117,7 +117,7 @@ W3Schools에서 [CSS 선택자](https://www.w3schools.com/cssref/css_selectors.a

{% filename %}blog/templates/blog/post_list.html{% endfilename %}
```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
2 changes: 1 addition & 1 deletion ko/django_forms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class PostForm(forms.ModelForm):

{% filename %}blog/templates/blog/base.html{% endfilename %}
```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
2 changes: 1 addition & 1 deletion ko/template_extending/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

{% filename %}blog/templates/blog/base.html{% endfilename %}
```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
4 changes: 2 additions & 2 deletions pl/css/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Musimy też powiedzieć naszemu szablonowi HTML, że dodałyśmy trochę styli C
{% filename %}blog/templates/blog/post_list.html{% endfilename %}

```html
{% load staticfiles %}
{% load static %}
```

Tutaj ładujemy pliki statyczne :) Pomiędzy tagami `<head>` oraz `</head>`, po liniach linkujących do plików CSS Bootstrapa, dodaj tę linię:
Expand All @@ -111,7 +111,7 @@ Twój plik powinien teraz wyglądać tak:
{% filename %}blog/templates/blog/post_list.html{% endfilename %}

```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
2 changes: 1 addition & 1 deletion pl/django_forms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Po dodaniu powyższej linii Twój plik HTML powinien wyglądać następująco:
{% filename %}blog/templates/blog/base.html{% endfilename %}

```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
2 changes: 1 addition & 1 deletion pl/template_extending/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Następnie otwórz go i skopiuj całą zawartość pliku `post_list.html` do pli
{% filename %}blog/templates/blog/base.html{% endfilename %}

```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
4 changes: 2 additions & 2 deletions ru/css/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ h1 a {

{% filename %}blog/templates/blog/post_list.html{% endfilename %}
```html
{% load staticfiles %}
{% load static %}
```

Мы просто загружаем здесь статические файлы :)
Expand All @@ -116,7 +116,7 @@ h1 a {

{% filename %}blog/templates/blog/post_list.html{% endfilename %}
```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
2 changes: 1 addition & 1 deletion ru/django_forms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class PostForm(forms.ModelForm):

{% filename %}blog/templates/blog/base.html{% endfilename %}
```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
2 changes: 1 addition & 1 deletion ru/template_extending/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ blog

{% filename %}blog/templates/blog/base.html{% endfilename %}
```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
4 changes: 2 additions & 2 deletions sk/css/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Ešte musíme povedať našej HTML šablóne, že sme pridali nejaké CSS. Otvor
{% filename %}blog/templates/blog/post_list.html{% endfilename %}

```html
{% load staticfiles %}
{% load static %}
```

Tu sme len nahrali statické súbory. :) Medzi `<head>` a `</head>`, po odkazoch na Bootstrap CSS súbory pridať tento riadok:
Expand All @@ -111,7 +111,7 @@ Súbor by mal teraz vyzerať asi takto:
{% filename %}blog/templates/blog/post_list.html{% endfilename %}

```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
2 changes: 1 addition & 1 deletion sk/django_forms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Po pridaní riadku by tvoj html súbor mal vyzerať asi takto:
{% filename %}blog/templates/blog/base.html{% endfilename %}

```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
2 changes: 1 addition & 1 deletion sk/template_extending/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Otvor ho a skopíruj doň všetko z `post_list.html` do súboru `base.html`:
{% filename %}blog/templates/blog/base.html{% endfilename %}

```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
4 changes: 2 additions & 2 deletions tr/css/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Bir de HTML şablonuna projemize CSS eklediğimizi bildirmemiz gerekiyor. `blog/
{% filename %}blog/templates/blog/post_list.html{% endfilename %}

```html
{% load staticfiles %}
{% load static %}
```

Burada sadece statik dosya ekliyoruz :) `<head>` ve `</head>` etiketleri arasına, bootstrap linklerinde sonra, şu satırı ekleyelim:
Expand All @@ -110,7 +110,7 @@ Tarayıcı, dosyaları verilen sırada okuyor. O yüzden doğru yerde olduğunda
{% filename %}blog/templates/blog/post_list.html{% endfilename %}

```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
2 changes: 1 addition & 1 deletion tr/django_forms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Satırı ekledikten sonra, HTML dosyanız bu şekilde görünmelidir:
{% filename %}blog/templates/blog/base.html{% endfilename %}

```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
2 changes: 1 addition & 1 deletion tr/template_extending/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Sonra bunu açalım ve `post_list.html` dosyasındaki her şeyi aşağıdaki gib
{% filename %}blog/templates/blog/base.html{% endfilename %}

```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls Blog</title>
Expand Down
4 changes: 2 additions & 2 deletions uk/css/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Class і id - імена, які ви присвоюєте елементам в
Далі, нам треба повідомити наш HTML-шаблон про те, що ми додали CSS. Відкрийте файл `blog/templates/blog/post_list.html` і додайте на початок цей рядок:

```html
{% load staticfiles %}
{% load static %}
```

Тут лише завантажуються статичні файли :)
Expand All @@ -107,7 +107,7 @@ Class і id - імена, які ви присвоюєте елементам в
Тепер ваш файл має виглядати наступним чином:

```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
2 changes: 1 addition & 1 deletion uk/django_forms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class PostForm(forms.ModelForm):
Після додавання відповідного рядка, ваш html файл має виглядати наступним чином:

```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down
2 changes: 1 addition & 1 deletion uk/template_extending/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
Відкрийте його і скопіюйте усе з `post_list.html` до файлу `base.html`, як тут:

```html
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>Django Girls blog</title>
Expand Down

0 comments on commit c998673

Please sign in to comment.