As of recently I’ve started my graduation phase of my current study. I’ve managed to get my own project in for my graduation thesis, which means I’ll be spending more time developing with Django. This post is more of a reminder of the things I’ve learned so far… The previous post can be read here.
- The inspectdb tool is priceless when using other databases in which you have no schema’s yet! During the past month I’ve been tinkering with a database from wordpress, including payment plugins. With the inspectdb tool it’s easy to generate a schema so you can continue building managers.
- Learned the hard way: Managers are the go-to option for model-logic. I’ve been putting most of my logic in the views.py, but it grows quickly the more complex your application gets. And I’ve seen myself copy-pasting code a lot, hey, that’s no DRY!
- I’m exploring celery for a task-queue. It’s a new way of thinking for cronjobs and other tasks… Curious if I could integrate it!
- Djaneiro saves you a hell of a lot of time, recommended if you use Sublime!