django-descriptors icon indicating copy to clipboard operation
django-descriptors copied to clipboard

Demonstration of using Python Descriptors to Enhance Django Models and Fields

Django Descriptors

This sample project is the companion of a blog post on patterns for building better models and fields using Descriptors.

Setup

You're encouraged to setup a virtualenv to work in prior to configuring the dependencies.

  1. Install Python Requirements

     pip install -r dev-requirements.txt
    
  2. Setup the Database

     ./manage.py syncdb
    
  3. Load the models

     ./manage.py shell_plus