Sometimes it is easier to design and talk about models in a more abstract easy to change way. After that design phase is finished, it is nice to have something to take your designs and give you boilerplate code. This does that for Django when models are specified in a specific style in Trello. An example board https://trello.com/b/iPHi7eQz/my-django-models.
py-trello==0.1.6
is installedpy-trello
has a bug that is easily fixed, edit theenv/lib/python2.X/site-packages/trello/__init__.py
line 577. Change it fromself.due = json_obj.get('due', '')[:10]
toif json_obj.get('due', ''): self.due = json_obj.get('due', '')[:10]
- Environment variables are set;
TRELLO_KEY
,TRELLO_SECRET
,TRELLO_TOKEN
- Each list that starts with "Model:" will be turned into a Django model. All other syntax is based on the cards in those lists.