Hello,
I need some help with understanding the best way to use Pydev with Eclipse, 
for web2py applications development. 
I have been working with web2py for the past year, and use the tools 
mentioned above for this purpose. Am trying to refine my understanding of 
this toolset, and if there is something more that can be done to improve 
the experience.

I use Eclipse IDE (Luna Service Release 2 - 4.4.2), with Pydev 
(4.3.0.201508182223), on Windows (10.0.10240), as my web2py development 
environment.

*Sorting out web2py imports*
I was looking at the documentation: 
http://web2py.com/books/default/chapter/29/14/other-recipes#Using-general-purpose-IDEs-with-web2py.
 
Went ahead and added the code to resolve imports:

if False:
    from gluon import *
    request = current.request
    response = current.response
    session = current.session
    cache = current.cache
    T = current.T


...It is probably wise to remove the import of the gluon debug module. 
> Also, to do this you should make the pydev project the web2py directory, 
> not your specific application.
>
> PyDev's git integration copes with this; it supports multiple git 
> repositories inside the one project directory structure.
>

I didn't quite understand what this means? It seems to suggest a means to 
debug applications from within Eclipse; can anyone elaborate on how to get 
this done. I can test it out, and contribute to improving the 
documentation. 


*Applications outside of web2py*
I also noticed this response from Massimo: 

Actually the web2py applications/ folder is not required to be under the 
> the web2py folder..


https://groups.google.com/d/msg/web2py/wi25qItKDEo/w-RbzvykRfcJ
So, I need to create a *web2py/options.py*, which has the property
folders = /web2py_applications #docker volume, for example

This will help me create web2py docker-containers, which point to my 
applications code outside of the containers. The applications themselves 
are in a git repository. Is this a setup that anyone has tried out before. 
I noticed this thread by Massimo, but that was inconclusive: 
https://groups.google.com/forum/#!searchin/web2py/docker/web2py/XhrfaYX00dg/6koPFbJWfNYJ
Any suggestions?

Thanks,
Kiran

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to