Skip to content

Commit 9b568a9

Browse files
committed
Fixed conflict
2 parents 6fa7da5 + 87207f7 commit 9b568a9

3 files changed

Lines changed: 24 additions & 9 deletions

File tree

django_installation/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ where `C:\Python34\python` is folder in which you previously installed Python an
2222

2323
Creating `virtualenv` in both Linux and OS X is as simple as typing in console (remember, that we expect that you have python 3.4 installed):
2424

25-
~$ python -m venv blog
25+
~$ python3 -m venv blog
2626

2727
### Working with virtualenv
2828

@@ -46,7 +46,9 @@ or:
4646

4747
so the prefix `(blog)` appears!
4848

49-
OK, we have all important things in place. We can finally install Django!
49+
When working within a virtual environment, `python` will automatically refer to the correct version so you can use `python` instead of `python3`.
50+
51+
Ok, we have all important things in place. We can finally install Django!
5052

5153
## Installing Django
5254

@@ -75,5 +77,3 @@ depending on whether you have 32 or 64 bit Windows.
7577
Once it's completed execute `python -c "import psycopg2"`. If you get no errors, everything works.
7678

7779
That's it! Now you are finally ready to create a Django application! But to do that, you need some nice program to edit the code...
78-
79-

python_installation/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ You can download Python for Windows from the website https://www.python.org/down
2020

2121
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:
2222

23-
$ python --version
23+
$ python3 --version
2424
Python 3.4.1
2525

2626
If you don't have Python installed or you want a different version, you can install it as follows.

python_introduction/README.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,34 @@ 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. On Mac OS X you can do this by launching the `Terminal` application (it's in Applications → Utilities). On Windows you need to go to Start menu → All Programs → Accessories → Command Prompt. On Linux, it's probably under Applications → Accessories → Terminal.
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.
1010

11-
A window should pop up on your screen. This window is a prompt, waiting for commands from you. We want to open up a Python console, so type in `python` and hit Enter.
11+
### Windows
1212

13-
(workshops) ~$ python
13+
On Windows you need to go to Start menu → All Programs → Accessories → Command Prompt.
14+
15+
A window should pop up on your screen. This window is a prompt, waiting for commands from you. We want to open up a Python console, so type in `python3` and hit Enter.
16+
17+
C:\Users\Name> C:\Python34\python
1418
Python 3.4.1 (...)
1519
Type "copyright", "credits" or "license" for more information.
1620
>>>
1721

18-
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.
22+
### Linux and OX X
23+
24+
On Mac OS X you can do this by launching the `Terminal` application (it's in Applications → Utilities). On Linux, it's probably under Applications → Accessories → Terminal.
25+
26+
A window should pop up on your screen. This window is a prompt, waiting for commands from you. We want to open up a Python console, so type in `python3` and hit Enter.
27+
28+
$ python3
29+
Python 3.4.1 (...)
30+
Type "copyright", "credits" or "license" for more information.
31+
>>>
1932

2033
## Your first Python command!
2134

35+
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.
36+
2237
Let's start with something really simple. For example, try typing some math, like `2 + 3` and hit Enter.
2338

2439
>>> 2 + 3

0 commit comments

Comments
 (0)