-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve settings detection #2
Comments
I just looked over the cookiecutter template, and the settings should still be found as long as |
It doesn't seem to, at least |
Where is |
This is "vanilla" cookiecutter, where
|
I was asking for your layout (assuming it was slightly different from cookiecutter). Anyways, I made a mistake in my assumption. I think I see why it's not working for you. The completion script is assuming that the scripts are only one directory deep. I misread the source 😅 |
Could you confirm that this is fixed? |
Unfortunately it still does not...Just to make sure I've tested a non-cookiecutter layout which does set b:is_django_settings. However I still wonder what kind of completions I'm able to get from it. |
I just tested with an arbitrary path for the settings module. I got the error:
After setting
|
Really at a loss here, maybe a missing
|
Nah, the script assumes that the |
Nevermind, I see the problem now. The cookiecutter project uses single quotes instead of double quotes. |
|
Is that the whole exception? It doesn't look like it. |
Have you tried it in Vim? I'll still fix that error, but it should work now since the plugin uses full paths for the completion script. |
When on |
Ah, yeah it's still expecting to find |
That's awesome @tweekmonster, it does work! Maybe README also deserves update. |
Great 🙂 What do you suggest should be mentioned in the README? My thought is that it (now) does what the README says in the case for cookiecutter boilerplates. |
I guess it should mention that the detection method also understands cookicutter-like layouts, that's all :) |
@aleprovencio Are you still using this plugin in a way that perhaps you could help me out with configuring it properly to get queryset completion? ergo: #19 |
I'm sorry, have not been using it anymore :/ |
@josefson I've been using the plugin. Happy to help out if you'd like |
Like in the cookiecutter project, the settings structure is arranged this way:
The text was updated successfully, but these errors were encountered: