This project is a lightweight application designed to showcase Django and Backbone.js integration. It's not in any way intended to be industrial-strength, security-hardened, or state-of-the-art. It has been pared down to illustrate concepts with as little noise as possible.
The project evolves over the course of the branches.
I've included a requirements.txt file, but really the only hard and fast requirements are Python and Django. I've tried to keep the Python and the Django relatively portable, but I think I'm using the json library, which suggests 2.6 or newer. On a UNIXy system, you can get this up and running by doing something like the following:
- when you clone this project, rename it "spine" (oops)
- sudo easy_install -U pip
- sudo pip install -U virtualenv
- mkdir $HOME/pythons
- pushd $HOME/pythons
- virtualenv --no-site-packages spiney
- ln -s $HOME/pythons/spiney/bin/activate
- source ./activate
- pip install -r ./requirements.txt
- python manage.py syncdb
- python manage.py runserver
At that point you should be able to hit http://127.0.0.1/contacts and see the app.
OVERVIEW OF BRANCHES
- skeleton is a simple foundation for REST-style Django apps. It includes dependencies like backbone.js and jquery.
- django-emails installs some Django models, views, URLs, and templates to power the app.
- add-delete adds the ability to delete a row and some validation.
- add-edit adds the ability to edit a row.
This project has been put together with a ton of help from a lot of people.
I've taken a lot of advice from my colleagues.