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