|
| 1 | +You can [skip right over this section](http://tutorial.djangogirls.org/en/installation/#install-python) if you're not using a Chromebook. If you are, your installation experience will be a little different. You can ignore the rest of the installation instructions. |
| 2 | + |
| 3 | +### Cloud 9 |
| 4 | + |
| 5 | +Cloud 9 is a tool that gives you a code editor and access to a computer running on the Internet where you can install, write, and run software. For the duration of the tutorial, Cloud 9 will act as your *local machine*. You'll still be running commands in a terminal interface just like your classmates on OS X, Ubuntu, or Windows, but your terminal will be connected to a computer running somewhere else that Cloud 9 sets up for you. |
| 6 | + |
| 7 | +1. Install Cloud 9 from the [Chrome web store](https://chrome.google.com/webstore/detail/cloud9/nbdmccoknlfggadpfkmcpnamfnbkmkcp) |
| 8 | +2. Go to [c9.io](https://c9.io) |
| 9 | +3. Sign up for an account |
| 10 | +4. Click *Create a New Workspace* |
| 11 | +5. Name it *django-girls* |
| 12 | +6. Select the *Blank* (second from the right on the bottom row with orange logo) |
| 13 | + |
| 14 | +Now you should see an interface with a sidebar, a big main window with some text, and a small window at the bottom that looks something like this: |
| 15 | + |
| 16 | +{% filename %}Cloud 9{% endfilename %} |
| 17 | + |
| 18 | + yourusername:~/workspace $ |
| 19 | + |
| 20 | + |
| 21 | +This bottom area is your *terminal*, where you will give the computer Cloud 9 has prepared for you instructions. You can resize that window to make it a bit bigger. |
| 22 | + |
| 23 | +### Virtual Environment |
| 24 | + |
| 25 | +A virtual environment (also called a virtualenv) is like a private box we can stuff useful computer code into for a project we're working on. We use them to keep the various bits of code we want for our various projects separate so things don't get mixed up between projects. |
| 26 | + |
| 27 | +In your terminal at the bottom of the Cloud 9 interface, run the following: |
| 28 | + |
| 29 | +{% filename %}Cloud 9{% endfilename %} |
| 30 | + |
| 31 | + sudo apt update |
| 32 | + sudo apt install python3.6-venv |
| 33 | + |
| 34 | + |
| 35 | +If this still doesn't work, ask your coach for some help. |
| 36 | + |
| 37 | +Next, run: |
| 38 | + |
| 39 | +{% filename %}Cloud 9{% endfilename %} |
| 40 | + |
| 41 | + mkdir djangogirls |
| 42 | + cd djangogirls |
| 43 | + python3.6 -mvenv myvenv |
| 44 | + source myvenv/bin/activate |
| 45 | + pip install django~=1.11.0 |
| 46 | + |
| 47 | + |
| 48 | +(note that on the last line we use a tilde followed by an equal sign: ~=). |
| 49 | + |
| 50 | +### Github |
| 51 | + |
| 52 | +Make a [Github](https://github.com) account. |
| 53 | + |
| 54 | +### PythonAnywhere |
| 55 | + |
| 56 | +The Django Girls tutorial includes a section on what is called Deployment, which is the process of taking the code that powers your new web application and moving it to a publicly accessible computer (called a server) so other people can see your work. |
| 57 | + |
| 58 | +This part is a little odd when doing the tutorial on a Chromebook since we're already using a computer that is on the Internet (as opposed to, say, a laptop). However, it's still useful, as we can think of our Cloud 9 workspace as a place or our "in progress" work and Python Anywhere as a place to show off our stuff as it becomes more complete. |
| 59 | + |
| 60 | +Thus, sign up for a new Python Anywhere account at [www.pythonanywhere.com](https://www.pythonanywhere.com). |
0 commit comments