Hello Tim,
Try your setup, which seems to work great... But I would know if you have
the same issue then me... In the debugger python console I get python
prompt corrupted character.. Se attach screenshot...
Do you have the same issue?
Richard
On Thu, Feb 26, 2015 at 5:12 PM, Tim Richardso
Diogene,
I think that Antonio want to use pycham python console like you would use
python console started with web2py command line where you can make
available web2py environnment and particularly access database models of a
given application.
Tim answer seems the way to go... I didn't test it th
On 02/26/2015 01:41 PM, António Ramos wrote:
> To the ones that use pycharm with web2py.
>
> How can i interact with my models from the python console ?
I don't think that it is different from the shell outside of pycharm.
> it does not recognize my models.
What do you mean by that ?
Regards,
I use pycharm.
Often I do some quick and dirty testing in a module file where I have code
using DAL features.
if __name__ == "__main__":
#debug code
and I want to run that in the normal scope of web2py, i.e. the same as -S
-M from the command line.
I set up a Pycharm debug configuration which
I can't see passing web2py init from command line with pdb, I try python -m
pdb web2py -a 'pwd' -i 127.0.0.1 -p 8001 -R AppName -M
But I just can see the os import, then the rocket server get started.
:(
Richard
On Thu, Feb 26, 2015 at 11:00 AM, Richard
wrote:
> We may have more input here to
We may have more input here too
: https://groups.google.com/d/msg/web2py/69ji7YH6Ufw/xRaFTBO9W0IJ
:)
Richard
Le jeudi 26 février 2015 10:57:49 UTC-5, Richard a écrit :
>
> Though I don't think environnement is defined...
>
> On Thu, Feb 26, 2015 at 10:56 AM, Richard Vézina <
> ml.richard.vez...
Though I don't think environnement is defined...
On Thu, Feb 26, 2015 at 10:56 AM, Richard Vézina <
ml.richard.vez...@gmail.com> wrote:
> I would try to use run_models_in so far it seems that this is the
> function/method that will generate python import models in compiledapp.py
>
>
>
> On Thu, F
I would try to use run_models_in so far it seems that this is the
function/method that will generate python import models in compiledapp.py
On Thu, Feb 26, 2015 at 10:50 AM, António Ramos
wrote:
> dont i have to force it to do
>
> python web2py.py - S myapp
>
> at startup ?
>
> 2015-02-26 15:3
Things are in gluon/shell.py...
Richard
On Thu, Feb 26, 2015 at 10:08 AM, Richard Vézina <
ml.richard.vez...@gmail.com> wrote:
> Don't use it :D
>
> No, I am kidding...
>
> Here settings for python console :
> https://www.jetbrains.com/pycharm/help/console-python-console.html
>
> I don't how som
dont i have to force it to do
python web2py.py - S myapp
at startup ?
2015-02-26 15:39 GMT+00:00 Richard Vézina :
> Things are in gluon/shell.py...
>
> Richard
>
> On Thu, Feb 26, 2015 at 10:08 AM, Richard Vézina <
> ml.richard.vez...@gmail.com> wrote:
>
>> Don't use it :D
>>
>> No, I am kiddin
it already does this at init
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['C:\\web2pyGit\\web2py2\\applications\\teste1',
'C:\\web2pyGit\\web2py2\\gluon'])
2015-02-26 15:08 GMT+00:00 Richard Vézina :
> Don't use it :D
>
> No, I am kidding...
>
> Here setti
Don't use it :D
No, I am kidding...
Here settings for python console :
https://www.jetbrains.com/pycharm/help/console-python-console.html
I don't how someone can lunch pycharm embed python console with command
line web2py option...
Another option could be to import web2py stuff once the console
12 matches
Mail list logo