Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Peewee returning objects and not strings..
Post: RE: Peewee returning objects and not strings..

(Dec-10-2017, 04:49 PM)Windspar Wrote: You can use vars to see what the object data is. class Data: def __init__(self): self.data = "line" self.data2 = "line2" data = Data() print(data) prin...
JerryMotov General Coding Help 2 3,681 Dec-10-2017, 05:56 PM
    Thread: peewee.OperationalError: no such table:
Post: RE: peewee.OperationalError: no such table:

(Dec-10-2017, 04:57 PM)Windspar Wrote: Try this. I believe you have it in the wrong order. if __name__ == "__main__": init_database() app.run(host="0.0.0.0", port="8000") That worked! Thanks...
JerryMotov General Coding Help 3 7,084 Dec-10-2017, 05:45 PM
  Lightbulb Thread: Peewee returning objects and not strings..
Post: Peewee returning objects and not strings..

I want to get the data from my sqlite database using peewee Currently I am trying to do this on this way: data_list = [] for email in Check_history.select(): data_list.append([Check_histor...
JerryMotov General Coding Help 2 3,681 Dec-10-2017, 04:36 PM
    Thread: peewee.OperationalError: no such table:
Post: RE: peewee.OperationalError: no such table:

Whoops the __name__ == "__main__": Didn't run for some reason so my database never got initialized Moved the init_database out of the if __name__ == "__main__": and now it's working!!
JerryMotov General Coding Help 3 7,084 Dec-10-2017, 04:21 PM
    Thread: peewee.OperationalError: no such table:
Post: peewee.OperationalError: no such table:

Python version: Python 3.6.3 I am using flask, peewee and sqlite Hi, I am trying to connect my Python Flask application with a sqlite database. The idea is that it creates a database file if it does...
JerryMotov General Coding Help 3 7,084 Dec-10-2017, 10:27 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020