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/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
@@ -17,7 +17,7 @@ OK, time to look at our Post model. Remember to run `python manage.py runserver`
17
17
18
18

19
19
20
-
To log in, you need to create a *superuser* - a user which has control over everything on the site. Go back to the command-line and type `python manage.py createsuperuser`, and press enter. When prompted, type your username (lowercase, no spaces), email address, and password. Don't worry that you can't see the password you're typing in - that's how it's supposed to be. Just type it in and press 'Enter' to continue. The output should look like this (where username and email should be your own ones):
20
+
To log in, you need to create a *superuser* - a user which has control over everything on the site. Go back to the command-line and type `python manage.py createsuperuser`, and press enter. When prompted, type your username (lowercase, no spaces), email address, and password. Don't worry that you can't see the password you're typing in - that's how it's supposed to be. Just type it in and press `enter` to continue. The output should look like this (where username and email should be your own ones):
Copy file name to clipboardExpand all lines: en/how_the_internet_works/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
@@ -2,7 +2,7 @@
2
2
3
3
> This chapter is inspired by a talk "How the Internet works" by Jessica McKellar (http://web.mit.edu/jesstess/www/).
4
4
5
-
We bet you use the Internet every day. But do you actually know what happens when you type an address like http://djangogirls.org into your browser and press 'Enter'?
5
+
We bet you use the Internet every day. But do you actually know what happens when you type an address like http://djangogirls.org into your browser and press `enter`?
6
6
7
7
The first thing you need to understand is that a website is just a bunch of files saved on a hard disk. Just like your movies, music, or pictures.
8
8
However, there is one part that is unique for websites: they include computer code called HTML.
Copy file name to clipboardExpand all lines: en/python_introduction/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ To start playing with Python, we need to open up a *command line* on your comput
10
10
11
11
Once you're ready, follow the instructions below.
12
12
13
-
We want to open up a Python console, so type in `python` on Windows or `python3` on Mac OS/Linux and hit Enter.
13
+
We want to open up a Python console, so type in `python` on Windows or `python3` on Mac OS/Linux and hit `enter`.
14
14
15
15
$ python3
16
16
Python 3.4.2 (...)
@@ -23,7 +23,7 @@ After running the Python command, the prompt changed to `>>>`. For us this means
23
23
24
24
If you want to exit the Python console at any point, just type `exit()` or use the shortcut `Ctrl + Z` for Windows and `Ctrl + D` for Mac/Linux. Then you won't see `>>>` any longer.
25
25
26
-
But now, we don't want to exit the Python console. We want to learn more about it. Let's start with something really simple. For example, try typing some math, like `2 + 3` and hit Enter.
26
+
But now, we don't want to exit the Python console. We want to learn more about it. Let's start with something really simple. For example, try typing some math, like `2 + 3` and hit `enter`.
27
27
28
28
>>> 2 + 3
29
29
5
@@ -95,7 +95,7 @@ These are the basics of every programming language you learn. Ready for somethin
95
95
96
96
## Errors
97
97
98
-
Let's try something new. Can we get the length of a number the same way we could find out the length of our name? Type in `len(304023)` and hit Enter:
98
+
Let's try something new. Can we get the length of a number the same way we could find out the length of our name? Type in `len(304023)` and hit `enter`:
99
99
100
100
>>> len(304023)
101
101
Traceback (most recent call last):
@@ -124,7 +124,7 @@ Let's say we want to create a new variable called `name`:
124
124
125
125
You see? It's easy! It's simply: name equals Ola.
126
126
127
-
As you've noticed, your program didn't return anything like it did before. So how do we know that the variable actually exists? Simply enter `name` and hit Enter:
127
+
As you've noticed, your program didn't return anything like it did before. So how do we know that the variable actually exists? Simply enter `name` and hit `enter`:
Copy file name to clipboardExpand all lines: es/django_admin/README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,32 +6,32 @@ Vamos a abrir el archivo `blog/admin.py` y reemplazar su contenido con esto:
6
6
7
7
from django.contrib import admin
8
8
from .models import Post
9
-
9
+
10
10
admin.site.register(Post)
11
-
11
+
12
12
13
13
Como puedes ver, importamos (incluimos) el modelo Post definido en el capítulo anterior. Para hacer nuestro modelo visible en la página del administrador, tenemos que registrar el modelo con `admin.site.register(Post)`.
14
14
15
15
Es hora de mirar a nuestro modelo de Post. Recuerde que debe ejecutar `python manage.py runserver` en la consola para ejecutar el servidor web. Vaya al navegador y escriba la dirección:
16
16
17
17
http://127.0.0.1:8000/admin/
18
-
18
+
19
19
20
20
Usted verá una página de inicio de sesión como esta:
21
21
22
22
![Página de inicio de sesión][1]
23
23
24
24
[1]: images/login_page2.png
25
25
26
-
Para poder entrar necesitas crear un *superusuario* - un usuario que tiene control sobre todo en el sitio. Vuelve a la línea de comandos y escribe `python manage.py createsuperuser`, presione enter y escriba su nombre de usuario (en minúscula, sin espacios), dirección de correo electrónico y contraseña cuando te pregunten por ellos. La salida debe ser así (donde nombre de usuario y correo electrónico deben ser los tuyos):
26
+
Para poder entrar necesitas crear un *superusuario* - un usuario que tiene control sobre todo en el sitio. Vuelve a la línea de comandos y escribe `python manage.py createsuperuser`, presiona `enter` y escriba su nombre de usuario (en minúscula, sin espacios), dirección de correo electrónico y contraseña cuando te pregunten por ellos. La salida debe ser así (donde nombre de usuario y correo electrónico deben ser los tuyos):
Copy file name to clipboardExpand all lines: es/how_the_internet_works/README.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
@@ -2,7 +2,7 @@
2
2
3
3
> Este capitulo está inspirado por la charla "How the Internet works" de Jessica McKellar (http://web.mit.edu/jesstess/www/).
4
4
5
-
Apostamos que utilizas Internet cada día. Pero, ¿sabes lo que pasa cuando escribe una dirección como http://djangogirls.org en tu navegador y presionas 'Enter'?
5
+
Apostamos que utilizas Internet cada día. Pero, ¿sabes lo que pasa cuando escribe una dirección como http://djangogirls.org en tu navegador y presionas `enter`?
6
6
7
7
Lo primero que tienes que entender es que un sitio web es sólo un montón de archivos guardados en un disco duro. Al igual que tus películas, música o fotos. Sin embargo, los sitios web poseen una peculiaridad: ellos incluyen un código de computadoras llamado HTML.
8
8
@@ -50,4 +50,4 @@ Así que, básicamente, cuando tienes un sitio web necesitas tener un *servidor*
50
50
51
51
Puesto que este es un tutorial de Django, seguro te preguntarás qué es lo que hace Django. Bueno, cuando envías una respuesta, no siempre quieres enviar lo mismo a todo el mundo. Es mucho mejor si tus cartas son personalizados, especialmente para la persona que acaba de escribir, ¿cierto? Django nos ayuda con la creación de estas cartas personalizadas, interesante :).
52
52
53
-
así que basta de charlas y pongamos manos a la obra!
53
+
así que basta de charlas y pongamos manos a la obra!
Copy file name to clipboardExpand all lines: es/python_introduction/README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Para empezar a jugar con Python, tenemos que abrir una *línea de comandos* en n
12
12
13
13
Una vez que estés listo, sigue las siguientes instrucciones.
14
14
15
-
Queremos abrir una consola de Python, así que escribe `python3` y pulsa Enter.
15
+
Queremos abrir una consola de Python, así que escribe `python3` y pulsa `enter`.
16
16
17
17
$ python3
18
18
Python 3.4.2 (...)
@@ -26,7 +26,7 @@ Después de ejecutar el comando de Python, el cursor cambia a `>>>`. Para nosotr
26
26
27
27
Si deseas salir de la consola de Python en cualquier momento, simplemente escribe `exit()` o usar el atajo `Ctrl + Z` para Windows y `Ctrl + D` para Mac/Linux. Entonces no verás `>>>`.
28
28
29
-
Pero ahora, no queremos salir de la consola de Python. Queremos aprender más sobre él. Vamos a empezar con algo muy simple. Por ejemplo, trata de escribir algo de matemáticas, como `2 + 3` y pulsa Enter.
29
+
Pero ahora, no queremos salir de la consola de Python. Queremos aprender más sobre él. Vamos a empezar con algo muy simple. Por ejemplo, trata de escribir algo de matemáticas, como `2 + 3` y pulsa `enter`.
30
30
31
31
>>> 2 + 3
32
32
5
@@ -96,14 +96,14 @@ Ok, suficiente de strings. Hasta ahora has aprendido sobre:
96
96
97
97
***la terminal** - teclea comandos (código) dentro de la terminal de Python para obtener resultados en preguntas en Python
98
98
***números y strings** - en Python los números son usados para matemáticas y strings para objetos de texto
99
-
***operadores** - como + y *, combinan valores para producir uno nuevo
99
+
***operadores** - como + y \*, combinan valores para producir uno nuevo
100
100
***funciones** como upper() y len(), realizan opciones sobre los objetos.
101
101
102
102
Estos son los conocimientos básicos que puedes aprender de cualquier lenguaje de programación. ¿Listo para algo un poco más fuerte? ¡Apostamos que lo estás!
103
103
104
104
## Errores
105
105
106
-
Intentemos con algo nuevo. ¿Podríamos obtener la longitud de un número de la misma manera que obtuvimos la longitud de nuestro nombre? Teclea `len(304023)` y presiona Enter:
106
+
Intentemos con algo nuevo. ¿Podríamos obtener la longitud de un número de la misma manera que obtuvimos la longitud de nuestro nombre? Teclea `len(304023)` y presiona `enter`:
107
107
108
108
>>> len(304023)
109
109
Traceback (most recent call last):
@@ -135,7 +135,7 @@ Supongamos que queremos crear una nueva variable llamada `nombre`:
135
135
136
136
¿Ves? ¡Es fácil! Es simplemente: name equivale a Ola.
137
137
138
-
Como te has dado cuenta, el programa no regresa algo como lo hacia antes. Entonces, ¿Cómo sabemos que la variable existe realmente? Simplemente introduce `name` y pulsa Enter:
138
+
Como te has dado cuenta, el programa no regresa algo como lo hacia antes. Entonces, ¿Cómo sabemos que la variable existe realmente? Simplemente introduce `name` y pulsa `enter`:
0 commit comments