Using general purpose IDEs with web2py but IDE not import gluon yet

40 views
Skip to first unread message

Dmitrii Ermolaev

unread,
Sep 7, 2020, 4:27:04 AM9/7/20
to web2py-users
I use ItelliJ IDEA 2020.2 + 

if make as here:


but in code:
from gluon import *   --- see error: Unresolved reference 'gluon' 

Then I Install web2py package - all work OK!

in models/db for erase all syntax errors insert:
if False:
    pass

in controllers for erase all syntax errors insert:
if False: # for IDEA
    from gluon import *
    from db import *
    import auth
    from menu import *
    request = current.request
    response = current.response
    session = current.session
    cache = current.cache
    T = current.T
    pass


Dmitrii Ermolaev

unread,
Sep 7, 2020, 4:29:56 AM9/7/20
to web2py-users
IntelliJ - Tools - manage Python packages...

понедельник, 7 сентября 2020 г. в 11:27:04 UTC+3, Dmitrii Ermolaev:

Dmitrii Ermolaev

unread,
Sep 7, 2020, 4:35:22 AM9/7/20
to web2py-users
but :
from gluon.contrib.appconfig import AppConfig
cond = isinstance(value, GQLDB)

see as syntax erro yet

понедельник, 7 сентября 2020 г. в 11:29:56 UTC+3, Dmitrii Ermolaev:
Reply all
Reply to author
Forward
0 new messages