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
You can download Git from [git-scm.com](https://git-scm.com/). You can hit "next" on all steps except for one; in the fifth step entitled "Adjusting your PATH environment", choose "Use Git and optional Unix tools from the Windows Command Prompt" (the bottom option). Other than that, the defaults are fine. Checkout Windows-style, commit Unix-style line endings is good.
9
9
10
10
Do not forget to restart the command prompt or powershell after the installation finished successfully.
To create a new `virtualenv`, you need to open the command prompt and run `python -m venv myvenv`. It will look like this:
@@ -45,7 +45,7 @@ Where `myvenv` is the name of your `virtualenv`. You can use any other name, but
45
45
46
46
<!--endsec-->
47
47
48
-
<!--sec data-title="Linux and OS X" data-id="virtualenv_installation_linuxosx"
48
+
<!--sec data-title="Virtual environment: Linux and OS X" data-id="virtualenv_installation_linuxosx"
49
49
data-collapse=true ces-->
50
50
51
51
Creating a `virtualenv` on both Linux and OS X is as simple as running `python3 -m venv myvenv`.
@@ -108,7 +108,7 @@ $ python3 -m venv myvenv
108
108
109
109
The command above will create a directory called `myvenv` (or whatever name you chose) that contains our virtual environment (basically a bunch of directory and files).
> If you get an error when calling pip on Windows platform, please check if your project pathname contains spaces, accents or special characters (for example, `C:\Users\User Name\djangogirls`). If it does, please consider using another place without spaces, accents or special characters (suggestion: `C:\djangogirls`). Create a new virtualenv in the new directory, then delete the old one and try the above command again. (Moving the virtualenv directory won't work since virtualenv uses absolute paths.)
185
185
186
186
<!--endsec-->
187
187
188
-
<!--sec data-title="Windows 8 and Windows 10" data-id="django_err_windows8and10"
188
+
<!--sec data-title="Installing Django: Windows 8 and Windows 10" data-id="django_err_windows8and10"
189
189
data-collapse=true ces-->
190
190
191
191
> Your command line might freeze after when you try to install Django. If this happens, instead of the above command use:
> If you get an error when calling pip on Ubuntu 12.04 please run `python -m pip install -U --force-reinstall pip` to fix the pip installation in the virtualenv.
Copy file name to clipboardExpand all lines: en/django_start_project/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
@@ -16,7 +16,7 @@ The names of some files and directories are very important for Django. You shoul
16
16
> Remember to run everything in the virtualenv. If you don't see a prefix `(myvenv)` in your console, you need to activate your virtualenv. We explained how to do that in the __Django installation__ chapter in the __Working with virtualenv__ part. Typing `myvenv\Scripts\activate` on Windows or
17
17
`source myvenv/bin/activate` on Mac OS X or Linux will do this for you.
18
18
19
-
<!--sec data-title="OS X or Linux" data-id="django_start_project_OSX_Linux" data-collapse=true ces-->
19
+
<!--sec data-title="Create project: OS X or Linux" data-id="django_start_project_OSX_Linux" data-collapse=true ces-->
20
20
21
21
In your Mac OS X or Linux console, you should run the following command. **Don't forget to add the period (or dot) `.` at the end!**
22
22
@@ -32,7 +32,7 @@ The `(myvenv) ~/djangogirls$` part shown here is just example of the prompt that
@@ -338,15 +338,15 @@ Now time to delete the `practice` directory:
338
338
339
339
> __Attention__: Deleting files using `del`, `rmdir` or `rm` is irrecoverable, meaning _the deleted files will be gone forever_! So be very careful with this command.
340
340
341
-
<!--sec data-title="Windows Powershell, OS X and Linux" data-id="OSX_Linux_rm" data-collapse=true ces-->
341
+
<!--sec data-title="Delete directory: Windows Powershell, OS X and Linux" data-id="OSX_Linux_rm" data-collapse=true ces-->
0 commit comments