Skip to content

Commit 2c0d4c6

Browse files
committed
Adding notes about exiting Python command, making sure that you are in the right directory to generate the requirement.txt file, and a few other editorial changes
1 parent ecbeec1 commit 2c0d4c6

4 files changed

Lines changed: 13 additions & 11 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ It will (more or less) look like this:
2626

2727
![Figure 0.1](images/application.png)
2828

29-
Ok, [let's start at the beginning...](how_internet_works/README.md)
29+
OK, [let's start at the beginning...](how_internet_works/README.md)
3030

3131
## About and contributing
3232

deploy/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ But first, Heroku needs us to install the `django-toolbelt` package. Go to your
1414

1515
(myvenv) $ pip install dj-database-url gunicorn whitenoise
1616

17-
After the installation is finished, run this command:
17+
After the installation is finished, go to the `mysite` directory and run this command:
1818

1919
(myvenv) $ pip freeze > requirements.txt
2020

2121
This will create a file called `requirements.txt` with a list of your installed packages (i.e. Python libraries that you are using, for example Django :)).
2222

2323
Open this file and add the following line at the bottom:
24-
24+
2525
pyscopg2==2.5.3
2626

2727
This line is needed for your application to work on Heroku.
@@ -73,7 +73,7 @@ Another thing we need to do is modify our website's `settings.py` file. Open `my
7373
ALLOWED_HOSTS = ['*']
7474

7575
STATIC_ROOT = 'staticfiles'
76-
76+
7777
DEBUG = False
7878

7979
At the end of the `mysite/settings.py`, copy and paste this:
@@ -90,7 +90,7 @@ Then save the file.
9090
## mysite/wsgi.py
9191

9292
Open the `mysite/wsgi.py` file and add these lines at the end:
93-
93+
9494
from whitenoise.django import DjangoWhiteNoise
9595
application = DjangoWhiteNoise(application)
9696

python_installation/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Huh, it's exciting, right?! You'll write your first line of code in just minutes
44

55
But first, let us tell you what Python is. Python is a very popular programming language that can be used for creating websites, games, science, graphics and much, much more.
66

7-
Python was conceived in the late 1980s and its main goal is to be readable by human beings (not only machines!), which is why it looks much simpler than other programming languages. That makes it easy to learn, but don't worry, Python is also really powerful!
7+
Python originated in the late 1980s and its main goal is to be readable by human beings (not only machines!), which is why it looks much simpler than other programming languages. That makes it easy to learn, but don't worry, Python is also really powerful!
88

99
# Python installation
1010

@@ -18,7 +18,7 @@ You can download Python for Windows from the website https://www.python.org/down
1818

1919
### Linux
2020

21-
It is very likely that you already have Python installed out of the box. To check if you have it installed (and which version it is), you type in a console:
21+
It is very likely that you already have Python installed out of the box. To check if you have it installed (and which version it is), open a console and type:
2222

2323
$ python3 --version
2424
Python 3.4.1

python_introduction/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Let's write some code!
66

77
## Python prompt
88

9-
To start tinkering with Python, we need to open up a *prompt* on your computer. How you get there depends on the operating system but once it's open, everything is equal.
9+
To start playing with Python, we need to open up a *prompt* on your computer. How you get there depends on the operating system but once it's open, everything is equal.
1010

1111
### Windows
1212

@@ -34,7 +34,9 @@ A window should pop up on your screen. This window is a prompt, waiting for comm
3434

3535
After running the Python command, the prompt changed to `>>>`. For us it means that for now we may only use commands in the Python language. You don't have to type in `>>>` - Python will do that for you.
3636

37-
Let's start with something really simple. For example, try typing some math, like `2 + 3` and hit Enter.
37+
If you want to exit the Python console at any point, just type `exit()` or hit `Ctrl + D`. You won't see `>>>` any longer.
38+
39+
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.
3840

3941
>>> 2 + 3
4042
5
@@ -83,7 +85,7 @@ Wonder why sometimes you call functions by adding `.` at the end of the string (
8385

8486
### Summary
8587

86-
Ok, enough of strings. So far you've learned about:
88+
OK, enough of strings. So far you've learned about:
8789

8890
- __the prompt__ - typing commands (code) into prompt give you Python answers
8991
- __numbers and strings__ - in Python it's math and text objects
@@ -114,7 +116,7 @@ It worked! We used `str` function inside of `len` function. `str` is converting
114116
115117
## Variables
116118

117-
An important concept in programming is variables. A variable is nothing more than a name for something so you can use it later. Programmers use these variables to store data, make their code more readable and to not help them remember what things are.
119+
An important concept in programming is variables. A variable is nothing more than a name for something so you can use it later. Programmers use these variables to store data, make their code more readable and to help them remember what things are.
118120

119121
Let's say we want to create a new variable called `name`:
120122

0 commit comments

Comments
 (0)