knatten/vim_django — Issue #2: vim_django failed to parse the config file if the __file__ tric is used in it
Author: Psycojoker
Created: 2011-11-03 04:40:24+00:00
State: open

If the settings.py file play with it's __file__ attribute to make relative paths to various files vim_django will failed to parse it.

Apparently the fail append just here https://github.com/knatten/vim_django/blob/master/python/vim_django/vim_django.py#L102 probably because execfile doesn't setup __file__.

To reproduce it just create a new django project and put a "print __file__" or anything similar in the settings.py.

This is a bit annoying since the vast majority of the django projects I've ever encountered use this :p