For local project settings, I use old trick with
settings_local.py we can override variables from
settings.py. I didn't know how to supplement them. For example how to add line to
INSTALLED_APPSwithout copying whole list.
Yesterday I finally understood that I can import
Now, couple years later I prefer having separate settings file for different environments, as it is described in 2 scoops of django.
In VIM there is a command for char search: f. After first use it can be repeated with ;. I like to navigate in line with it. You see that you need to go to bracket in a middle of a line - you press f( and one-two ; and you are there. There's no such command in Emacs, so I had to write my own. I've managed even to implement repetition with ;.
In UNIX way, each view should solve single task. This is good idea, but sometimes we need to mix logic of different views on same page. Filter, sort, paginate, or, for example, add comment on product page. In this article I'll show how we can mix such multiple views.