mjbrownie / vim-htmldjango_omnicomplete

htmldjango filetype omnicomplete - completes template tags/filters/variables
26 stars 5 forks source link

Error detected while processing #1

Closed aliev closed 9 years ago

aliev commented 9 years ago

I get the following error error

i've set up env variable like this: export DJANGO_SETTINGS_MODULE='settings.base'

output for :python from django.conf import settings; print settings.INSTALLED_APPS command

output

Thanks!

mjbrownie commented 9 years ago

Hi Ali,

What is your output from the following on your vim command box?

:python import django_extensions

It's likely that the directory where django_extenstions exists in is not part of vim-pythons sys.path.

I have the following code in my .vimrc to check to see if the command line vim is launched from a virtualenv.

https://github.com/mjbrownie/dotfiles/blob/master/_vimrc#L319

but this would not work for gvim so I've left it up to the user to set up manually. Perhaps this is not a good idea. I'll have a look at alternatives.

On Thu, Dec 11, 2014 at 10:53 PM, Ali Aliyev notifications@github.com wrote:

I get the following error [image: error] https://camo.githubusercontent.com/26a89e4f85ce40443a7daa3b710ee4015154d1c9/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f752f353833373332342f6572722e706e67

i've set up env variable like this: export DJANGO_SETTINGS_MODULE='settings.base'

output for :python from django.conf import settings; print settings.INSTALLED_APPS command

[image: output] https://camo.githubusercontent.com/8a0289212fb17ddfd9f8089ef4813298c7d4aa37/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f752f353833373332342f617070732e706e67

Thanks!

— Reply to this email directly or view it on GitHub https://github.com/mjbrownie/vim-htmldjango_omnicomplete/issues/1.

aliev commented 9 years ago

wow, wonderful! thank you, works for me!

aliev commented 9 years ago

@mjbrownie i've made simple pull request: https://github.com/mjbrownie/vim-htmldjango_omnicomplete/pull/2