added django stuff, currently broken
renamed generator.py