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() PostgreSQL Exercises site, then you can load the data into a PostgreSQL database using the following commands: createdb peewee_test psql -U postgres -f clubdata.sql -d peewee_test -x -q To create the schema0 码力 | 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() PostgreSQL Exercises site, then you can load the data into a PostgreSQL database using the following commands: createdb peewee_test psql -U postgres -f clubdata.sql -d peewee_test -x -q To create the schema0 码力 | 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() PostgreSQL Exercises site, then you can load the data into a PostgreSQL database using the following commands: createdb peewee_test psql -U postgres -f clubdata.sql -d peewee_test -x -q To create the schema0 码力 | 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
 peewee Documentation
Release 3.3.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() PostgreSQL Exercises site, then you can load the data into a PostgreSQL database using the following commands: createdb peewee_test psql -U postgres -f clubdata.sql -d peewee_test -x -q To create the schema0 码力 | 280 页 | 1.02 MB | 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. 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() PostgreSQL Exercises site, then you can load the data into a PostgreSQL database using the following commands: createdb peewee_test psql -U postgres -f clubdata.sql -d peewee_test -x -q To create the schema0 码力 | 284 页 | 1.03 MB | 1 年前3
 peewee Documentation Release 3.6.0[https://github.com/coleifer/peewee/tree/master/examples/blog]. 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 码力 | 377 页 | 399.12 KB | 1 年前3
 peewee Documentation
Release 3.6.0more self-contained Peewee examples, like a blog app. 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: 1.3. Example app 13 peewee 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 码力 | 302 页 | 1.02 MB | 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. 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
共 16 条
- 1
 - 2
 













