-
I need to read in the db config from a file which currently does not work with the way the Meta class is used. It creates a default "peewee.db" if the database attribute is not set when parsing the mo…
-
Hi,
I'm getting this error when executing the code extracted from README ( https://github.com/coleifer/wtf-peewee#readme)
###### # begin
from peewee import *
from wtfpeewee.orm import model_form
c…
-
I have an SQLite database which has a DateTimeField() with a few different datetime formats (not on purpose). I will probably fix my datetime values, but I thought I'd post this in case you feel peew…
-
With the following I can access 'min' and 'max', but not 'price1'.
products = Product.select({
Product: ['*'],
Item: ['price1', Min('price1'), Max('price1')],
}).where(category_id=id).group_b…
-
I've run into a problem with a flask application. I've boiled down the reproduction scenario to the following single-file flask app:
https://github.com/davidthewatson/reproduce_model_form_error
I'm …
-
The orm generates this sql string
CREATE TABLE thethable (stat INTEGER NOT NULL, group VARCHAR(255) NOT NULL)
for a model that has stat an integerField and group a CharField.
sqlite3 then gives a…
-
I have the following code based on the example in the docs:
```
class User(db.Model, BaseUser):
username = CharField(unique=True)
password = CharField()
email = CharField(unique=True)
…
-
Hi,
It would be nice if something like that could work
``` python
import peewee
Class CoreModel(peewee.Model):
id = peewee.PrimaryKeyField()
created = peewee.DatetimeField()
Class Me…