i made a quick and dirty little plugin that attempts to set the syntax of the open buffer to “python django” when appropriate.
it is dependent on having already installed the Djaneiro package.
the way that SetDjangoSyntax works is probably pretty dumb, but in practice it seems to work fairly well on my box. please fork the repo and improve it if you can. at present, all it does is search the text of an open buffer whose filename ends in ‘.py’ for a string that equals “from django”. if it finds that string it sets the syntax to “python django”.
install SetDjangoSyntax via package control.
or you can download it directly (and/or view source) here.