Skip to content

Instantly share code, notes, and snippets.

@bjb
bjb / README
Last active August 12, 2021 08:46
sample django program: include model info into a form(set) without requiring edits to the model. Useful for a formset that allows performing an action on any of several models.
run ./unpack.sh to create the django directory structure.
make a virtualenv using requirements.txt and enter it.
run ./manage.py syncdb to create databases (sqlite3 by default).
Now you can run the app with ./manage.py runserver
To push back to gist, run ./pack.sh to copy the changed
files to where gist expects to find them, and commit
as usual.
Please update unpack.sh and pack.sh if you add/remove files.