Setting up the environment

The first thing we have to do is, as usual, set up our development environment and the first step is to create a virtual environment for our application. Our application will be called twittervotes, so let's go ahead and create a virtual environment called twittervotes:

When the virtualenv environment has been created, you can activate it with the following command:

. twittervotes/bin/activate

Great! Now let's set up the project's directory structure. It should look like the following:

twittervotes├── core│   ├── models│   └── twitter└── templates

Let's dive into the structure a bit:

twittervotes The application's ...

Get Python Programming Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.