Tag Archive: code

Aug
29

Bad Error Message is Unhelpful

So, I’m still learning Django and have a long ways to go, but the following error is extremely unhelpful: “TemplateSyntaxError: Invalid block tag: ‘else’, expected ‘else’ or ‘endif’” The problem is, Django doesn’t do else if, but my editor does highlight it as if it’s correct. You then get this error message, but have to …

Continue reading »

May
31

MacVim BClose

There are two ways to close buffers in MacVim: 1) :bd (Buffer Delete) This deletes one buffer, but the problem is, it won’t open it again during that session. 2) :q (quit) This closes ALL the buffers and the app. Neither does what I want most of the time, but I found this: http://vim.wikia.com/wiki/Deleting_a_buffer_without_closing_the_window It’s …

Continue reading »