peewee Documentation Release 2.10.2“twitter”-style web app using peewee and the Flask framework. I strongly recommend opening an interactive shell session and running the code. That way you can get a feel for typing in queries. Model Definition create_tables(): database.connect() database.create_tables([User, Relationship, Message]) Open a python shell in the directory alongside the example app and execute the following: >>> from app import * >>> create_tables() ManyToManyField exposes a SelectQuery representing the set of related objects. Let’s use the interactive shell to see how all this works: >>> huey = Student.get(Student.name == 'huey') >>> [course.name for course0 码力 | 275 页 | 276.96 KB | 1 年前3
 peewee Documentation
Release 2.10.2“twitter”-style web app using peewee and the Flask framework. I strongly recommend opening an interactive shell session and running the code. That way you can get a feel for typing in queries. 1.2.1 Model Definition create_tables(): database.connect() database.create_tables([User, Relationship, Message]) Open a python shell in the directory alongside the example app and execute the following: >>> from app import * >>> create_tables() ManyToManyField exposes a SelectQuery representing the set of related objects. Let’s use the interactive shell to see how all this works: 1.13. Playhouse, extensions to Peewee 123 peewee Documentation, Release0 码力 | 221 页 | 844.06 KB | 1 年前3
 peewee Documentation
Release 2.0.2is a one-time operation and can be done quickly using the interactive interpreter. Open a python shell in the directory alongside the example app and execute the following: >>> from app import * >>> create_tables() do this: pwiz.py -e postgresql my_postgres_db > mymodels.py python # <-- fire up an interactive shell >>> from mymodels import Blog, Entry, Tag, Whatever >>> print [blog.name for blog in Blog.select()]0 码力 | 65 页 | 315.33 KB | 1 年前3
 peewee Documentation Release 1.0.0is a one- time operation and can be done quickly using the interactive interpreter. Open a python shell in the directory alongside the example app and execute the following: >>> from app import * >>> create_tables() do this: pwiz.py -e postgresql my_postgres_db > mymodels.py python # <-- fire up an interactive shell >>> from mymodels import Blog, Entry, Tag, Whatever >>> print [blog.name for blog in Blog.select()]0 码力 | 101 页 | 163.20 KB | 1 年前3
 peewee Documentation
Release 1.0.0is a one-time operation and can be done quickly using the interactive interpreter. Open a python shell in the directory alongside the example app and execute the following: >>> from app import * >>> create_tables() do this: pwiz.py -e postgresql my_postgres_db > mymodels.py python # <-- fire up an interactive shell >>> from mymodels import Blog, Entry, Tag, Whatever >>> print [blog.name for blog in Blog.select()]0 码力 | 71 页 | 405.29 KB | 1 年前3
 peewee Documentation Release 3.0.0“twitter”-style web app using peewee and the Flask framework. I strongly recommend opening an interactive shell session and running the code. That way you can get a feel for typing in queries. Model Definition create_tables(): with database: database.create_tables([User, Relationship, Message]) Open a python shell in the directory alongside the example app and execute the following: >>> from app import * >>> create_tables() ManyToManyField exposes a ModelSelect representing the set of related objects. Let’s use the interactive shell to see how all this works: >>> huey = Student.get(Student.name == 'huey') >>> [course.name for course0 码力 | 319 页 | 361.50 KB | 1 年前3
 peewee Documentation
Release 3.5.0“twitter”-style web app using peewee and the Flask framework. I strongly recommend opening an interactive shell session and running the code. That way you can get a feel for typing in queries. Model Definition create_tables(): with database: database.create_tables([User, Relationship, Message]) Open a python shell in the directory alongside the example app and execute the following: >>> from app import * >>> create_tables() ManyToManyField exposes a ModelSelect representing the set of related objects. Let’s use the interactive shell to see how all this works: >>> huey = Student.get(Student.name == 'huey') >>> [course.name for course0 码力 | 347 页 | 380.80 KB | 1 年前3
 peewee Documentation Release 3.4.0“twitter”-style web app using peewee and the Flask framework. I strongly recommend opening an interactive shell session and running the code. That way you can get a feel for typing in queries. Model Definition create_tables(): with database: database.create_tables([User, Relationship, Message]) Open a python shell in the directory alongside the example app and execute the following: >>> from app import * >>> create_tables() ManyToManyField exposes a ModelSelect representing the set of related objects. Let’s use the interactive shell to see how all this works: >>> huey = Student.get(Student.name == 'huey') >>> [course.name for course0 码力 | 349 页 | 382.34 KB | 1 年前3
 peewee Documentation Release 3.1.0“twitter”-style web app using peewee and the Flask framework. I strongly recommend opening an interactive shell session and running the code. That way you can get a feel for typing in queries. Model Definition create_tables(): with database: database.create_tables([User, Relationship, Message]) Open a python shell in the directory alongside the example app and execute the following: >>> from app import * >>> create_tables() ManyToManyField exposes a ModelSelect representing the set of related objects. Let’s use the interactive shell to see how all this works: >>> huey = Student.get(Student.name == 'huey') >>> [course.name for course0 码力 | 332 页 | 370.77 KB | 1 年前3
 peewee Documentation
Release 3.5.0“twitter”-style web app using peewee and the Flask framework. I strongly recommend opening an interactive shell session and running the code. That way you can get a feel for typing in queries. 1.2.1 Model Definition create_tables(): with database: database.create_tables([User, Relationship, Message]) Open a python shell in the directory alongside the example app and execute the following: >>> from app import * >>> create_tables() ManyToManyField exposes a ModelSelect representing the set of related objects. Let’s use the interactive shell to see how all this works: >>> huey = Student.get(Student.name == 'huey') >>> [course.name for course0 码力 | 282 页 | 1.02 MB | 1 年前3
共 16 条
- 1
 - 2
 













