Feb-19-2019, 05:16 PM
(Feb-19-2019, 05:09 PM)nikos Wrote: [ -> ]First positional arg you mean.the last positional, e.g. if you have
page
as positional it will be
@app.route( '/<page>' ) def index(page, pymydb ):
(Feb-19-2019, 05:09 PM)nikos Wrote: [ -> ]I dont have anything else wrong AttributeError: 'NoneType' object has no attribute 'encoding' is refering to pymydb, perhaps it has no value?
Obviously you have something wrong :-). My point is, your original question was about not able to use
keyword
for the cursor and it was raising NameError. So now you know how to pass it. Start debuging the Attribute error.Post full traceback and the relevant code that produce it (not just selected lines)