Autodetect `django` in `web-mode`

Helper function for detecting when the `django` engine should be used in
`web-mode`.