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)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs