Hacker News new | ask | show | jobs
by avalaunch 4074 days ago
Django Baker

Adds a management command that generates views, forms, urls, admin, and templates based off the contents of models.py.

It's a bit like Rails scaffolding, but less magical. For each view it creates, for example, it will include stubbed out versions of almost all the methods and attributes you can override, in the order that they get called. The most "magical" part are the admin files that get generated, as they make use of a mixin I wrote that makes (hopefully) intelligent choices for list_display, list_filter, search_fields and automatically links to the related objects for each ForeignKey/OneToOneField. All the default choices are easily overridable.

https://github.com/krisfields/django-baker

It's not a big project but it's my first open source contribution so I'm proud of it nonetheless.