peewee Questions

1

I am using the Peewee module as the ORM for my project. I read the entire documentation, there is no clear example on how to process the result from db.execute_sql(). I traced the code, only ca...
Epinephrine asked 29/8, 2013 at 1:36

1

Solved

I'm trying to get this code working with peewee: distinct_list = QSales.select(QSales.account, QSales.tax_code).distinct().where(QSales.trans_num == 3717) print distinct_list but the print comma...
Ilocano asked 11/7, 2013 at 15:6

2

Solved

I'm trying to set up a database ORM with peewee and am not clear on the use of foreign key relationships. from peewee import * db = SqliteDatabase('datab.db') class datab(Model): class Meta: d...
Borderline asked 11/6, 2013 at 2:43

1

Solved

I'm trying to connect to a MySQL database on Amazon's RDS using peewee and I can't get it to work. I'm new to databases so I'm probably doing something stupid, but this is what I'm trying: import ...
Putscher asked 8/5, 2013 at 18:58

1

Solved

I have the following script: from peewee import * db = MySQLDatabase('database', user='root') class BaseModel(Model): class Meta: database = db class Locations(BaseModel): location_id = Prim...
Goings asked 17/4, 2013 at 16:11

1

Solved

Background I am looking for a way to dump the results of MySQL queries made with Python & Peewee to an excel file, including database column headers. I'd like the exported content to be laid o...
Osteoid asked 13/12, 2012 at 17:11

1

Solved

In order to make an extension really clean looking I'm trying to implement the ">>" operator in python as a class method. I'm not sure how to go about it though. I don't want to have to create an i...
Legislation asked 27/5, 2012 at 10:21

3

Solved

I'm currently writing an application that allows one to store images, and then tag these images. I'm using Python and the Peewee ORM (http://charlesleifer.com/docs/peewee/), which is very similar t...
Sparklesparkler asked 16/1, 2012 at 6:41

© 2022 - 2024 — McMap. All rights reserved.