Thanks Mulianto and James.  To James, perhaps I don't have a good workflow 
which is why the ability to edit files on a remote server is also a 
necessity.  I grew tired of having to build a development environment on 
both my Mac laptop and my Debian server where my Django app runs so now I 
just log into my dev server and do all my editing there using Vim.  I don't 
have time to setup up a local Debian server using Vagrant and Ansible and 
even if I did, I suspect PyCharm would still think of that local VM as a 
remote server.  I'm not sure.  These environments can easily become 
complicated and confusing to a Django noob like me.  I'm not really sure 
what the optimal development environment setup should be.

On Friday, July 7, 2017 at 10:46:58 AM UTC-7, James Schneider wrote:
>
>
>
> On Jul 7, 2017 8:27 AM, "Robert F." <robert....@gmail.com <javascript:>> 
> wrote:
>
> Is there a Vim plugin that does code completion for Django?  I'd like to 
> be able to type something like "foobar = models." and hit Tab and see a 
> list of classes like CharField or Foreign key.  Alternately, I'd be OK with 
> entering an abbreviation that would bring up the proper code snippet.  The 
> Django documentation suggests YouCompleteMe but it appears to only handle 
> Python code, not Django specifically.  Also, I haven't been able to get it 
> to work on my Mac laptop.
>
> I almost exclusively do editing of Django files on a remote Debian server 
> from my Mac laptop.  I know PyCharm provides the ability to edit remote 
> files and it has Vim emulation but it's pretty expensive and I'm not sure 
> how closely the emulator emulates Vim.  SublimeText appears to have a 
> "Djaneiro" package that does what I need but it looks like editing remote 
> files is rather difficult with Sublime.  Doesn't Vim have better support 
> for Django code completion that's comparable to these two applications?
>
>
> PyCharm's Vim emulation is quite excellent. For me, PyCharm pro is worth 
> the money for the extra Django integration. The community version is also 
> quite good, the only place I really missed the pro version is in the 
> template tags. The code completion works great as long as you mark your 
> project directories as source locations correctly.
>
> For editing remote files, you may want to look into using sshfs to mount 
> your project directly locally. It's basically a file share mounted over 
> SSH, so everything is encrypted in transit.
>
> http://www.miscdebris.net/blog/2009/06/29/installing-sshfs-on-mac-os-x/
>
> Typically though, I'm editing/running files locally, then pushing them to 
> the server via git.
>
> -James
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/21b0e473-07b4-4463-aa61-beb8e71efbf1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to