Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Presented at the January 2012 Memphis Python Users Group

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 scripts
Octocat-spinner-32 styles
Octocat-spinner-32 templates
Octocat-spinner-32 .gitignore
Octocat-spinner-32 JinjaWrapper.py
Octocat-spinner-32 MainHandler.py
Octocat-spinner-32 MakoHandler.py
Octocat-spinner-32 MakoWrapper.py
Octocat-spinner-32 README.md
Octocat-spinner-32 main.py
Octocat-spinner-32 requirements.txt
README.md

This is a small demo I am working on to prove the worthiness of vim, virtualenv and pip.

There is a corresponding presentation on Google Docs at:

Slides

Here are the links to the libraries used in the code:

Tornado Web Server
Jinja Templates
Mako Templates

And the tools:

virtualenv
pip
bpython

To run the code, clone the repository and then inside the directory for the code run:

Mac OS X/Linux

>> virtualenv --no-site-packages .
>> source bin/activate
>> pip install -r requirements.txt
>> python main.py

Windows

>> virtualenv --no-site-packages .
>> Scripts/activate.bat
>> pip install -r requirements.txt
>> python main.py

If port 8888 is already in use, you'll need to modify main.py to use a different port.
Stop the server with CTRL-C then run:

Mac OS X/Linux

>> deactivate

Windows

>> Scripts/deactivate.bat

to restore the system settings for Python.

Something went wrong with that request. Please try again.