Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A small project illustrating Django and Backbone.js integration.
JavaScript Python

This branch is 1 commit ahead of ggerrietts:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
address
common
db
.gitignore
README.md
__init__.py
manage.py
requirements.txt
settings.py
urls.py

README.md

INTRODUCTION

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.

REQUIREMENTS

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:

  1. when you clone this project, rename it "spine" (oops)
  2. sudo easy_install -U pip
  3. sudo pip install -U virtualenv
  4. mkdir $HOME/pythons
  5. pushd $HOME/pythons
  6. virtualenv --no-site-packages spiney
  7. popd
  8. ln -s $HOME/pythons/spiney/bin/activate
  9. source ./activate
  10. pip install -r ./requirements.txt
  11. python manage.py syncdb
  12. 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

  1. skeleton is a simple foundation for REST-style Django apps. It includes dependencies like backbone.js and jquery.
  2. django-emails installs some Django models, views, URLs, and templates to power the app.
  3. backbone-emails builds the Javascript layer that makes the basic app operate.
  4. add-delete adds the ability to delete a row and some validation.
  5. add-edit adds the ability to edit a row.

ACKNOWLEDGEMENTS

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.

Something went wrong with that request. Please try again.