webgrid

64 views
Skip to first unread message

Jorn de Rhoter

unread,
Mar 10, 2022, 7:03:35 AM3/10/22
to BlazeLibs
Hello,

I'm trying to get an example of webgrid up and running. I'm very new to Flask, so I probably am doing something dumb.

This part of the example code :

class Grid(webgrid.BaseGrid):
    manager = webgrid.flask.WebGrid()

Gives my this error :

AttributeError: module 'webgrid' has no attribute 'flask'

I tried everything I could think of. Is there maybe a zip of a working example I can download? (excluding db, I get that part)

regards,

Jorn.

Randy Syring

unread,
Mar 10, 2022, 7:44:08 PM3/10/22
to blaz...@googlegroups.com, Jorn de Rhoter
Jorn,

The tests have a working Flask application: https://github.com/level12/webgrid/tree/master/webgrid_ta

Did you name the file you are working in "webgrid.py".  If so, that will take the place of the installed webgrid and you will get an error like you describe below.

Randy Syring
Husband | Father | Redeemed Sinner

"For what does it profit a man to gain the whole world
and forfeit his soul?" (Mark 8:36 ESV)


--
You received this message because you are subscribed to the Google Groups "BlazeLibs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blazelibs+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blazelibs/e8ee1e3e-a14a-4070-b5e4-e38e68373dddn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages