peewee Documentation
Release 3.3.0animal_type == 'cat')) for pet in query: (continues on next page) 1.2. Quickstart 7 peewee Documentation, Release 3.3.0 (continued from previous page) print(pet.name, pet.owner.name) # prints: # Kitty Bob 1, 1) query = (Person .select() (continues on next page) 8 Chapter 1. Contents: peewee Documentation, Release 3.3.0 (continued from previous page) .where((Person.birthday < d1940) | (Person.birthday username=request.form['username'], (continues on next page) 1.3. Example app 15 peewee Documentation, Release 3.3.0 (continued from previous page) password=md5(request.form['password']).hexdigest()0 码力 | 280 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.4.0animal_type == 'cat')) for pet in query: (continues on next page) 1.2. Quickstart 7 peewee Documentation, Release 3.4.0 (continued from previous page) print(pet.name, pet.owner.name) # prints: # Kitty Bob 1, 1) query = (Person .select() (continues on next page) 8 Chapter 1. Contents: peewee Documentation, Release 3.4.0 (continued from previous page) .where((Person.birthday < d1940) | (Person.birthday username=request.form['username'], (continues on next page) 1.3. Example app 15 peewee Documentation, Release 3.4.0 (continued from previous page) password=md5(request.form['password']).hexdigest()0 码力 | 284 页 | 1.03 MB | 1 年前3
peewee Documentation
Release 3.5.0animal_type == 'cat')) for pet in query: (continues on next page) 1.2. Quickstart 7 peewee Documentation, Release 3.5.0 (continued from previous page) print(pet.name, pet.owner.name) # prints: # Kitty Bob 1, 1) query = (Person .select() (continues on next page) 8 Chapter 1. Contents: peewee Documentation, Release 3.5.0 (continued from previous page) .where((Person.birthday < d1940) | (Person.birthday IntegrityError. try: with database.atomic(): (continues on next page) 1.3. Example app 15 peewee Documentation, Release 3.5.0 (continued from previous page) # Attempt to create the user. If the username is taken0 码力 | 282 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.6.0select(Pet, Person) .join(Person) (continues on next page) 1.2. Quickstart 7 peewee Documentation, Release 3.6.0 (continued from previous page) .where(Pet.animal_type == 'cat')) for pet in query: CharField() join_date = DateTimeField() (continues on next page) 12 Chapter 1. Contents: peewee Documentation, Release 3.6.0 (continued from previous page) # this model contains two foreign keys to user -- var_name='object_list', **kwargs): kwargs.update( page=int(request.args.get('page', 1)), pages=qr.count() / 20 + 1) kwargs[var_name] = qr.paginate(kwargs['page']) return render_template(template_name, **kwargs)0 码力 | 302 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.5.0or contact me [http://charlesleifer.com/contact/]. Indices and tables Index Module Index Search Page Installing and Testing Most users will want to simply install the latest version, hosted on PyPI: **kwargs): kwargs.update( page=int(request.args.get('page', 1)), pages=qr.count() / 20 + 1) kwargs[var_name] = qr.paginate(kwargs['page']) return render_template(template_name view functions, checking for whether the session is authenticated and if not redirecting to the login page. def auth_user(user): session['logged_in'] = True session['user'] = user session['username']0 码力 | 347 页 | 380.80 KB | 1 年前3
peewee Documentation Release 3.4.0or contact me [http://charlesleifer.com/contact/]. Indices and tables Index Module Index Search Page Installing and Testing Most users will want to simply install the latest version, hosted on PyPI: , **kwargs): kwargs.update( page=int(request.args.get('page', 1)), pages=qr.count() / 20 + 1) kwargs[var_name] = qr.paginate(kwargs['page']) return render_template(template_name view functions, checking for whether the session is authenticated and if not redirecting to the login page. def auth_user(user): session['logged_in'] = True session['user'] = user session['username']0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation Release 2.10.2or contact me [http://charlesleifer.com/contact/]. Indices and tables Index Module Index Search Page Installing and Testing Most users will want to simply install the latest version, hosted on PyPI: **kwargs): kwargs.update( page=int(request.args.get('page', 1)), pages=qr.count() / 20 + 1 ) kwargs[var_name] = qr.paginate(kwargs['page']) return render_template(template_name functions, checking for whether the session is authenticated and if not redirecting to the login page. def auth_user(user): session['logged_in'] = True session['user'] = user session['username']0 码力 | 275 页 | 276.96 KB | 1 年前3
peewee Documentation Release 3.0.0or contact me [http://charlesleifer.com/contact/]. Indices and tables Index Module Index Search Page Installing and Testing Most users will want to simply install the latest version, hosted on PyPI: , **kwargs): kwargs.update( page=int(request.args.get('page', 1)), pages=qr.count() / 20 + 1) kwargs[var_name] = qr.paginate(kwargs['page']) return render_template(template_name view functions, checking for whether the session is authenticated and if not redirecting to the login page. def auth_user(user): session['logged_in'] = True session['user'] = user session['username']0 码力 | 319 页 | 361.50 KB | 1 年前3
peewee Documentation
Release 2.10.2var_name='object_list', **kwargs): kwargs.update( page=int(request.args.get('page', 1)), pages=qr.count() / 20 + 1 ) kwargs[var_name] = qr.paginate(kwargs['page']) return render_template(template_name, **kwargs) view functions, checking for whether the session is authenticated and if not redirecting to the login page. def auth_user(user): session['logged_in'] = True session['user'] = user session['username'] = user makes it easy to grab a page or records. paginate() takes two parameters, page_number, and items_per_page. Attention: Page numbers are 1-based, so the first page of results will be page 1. >>> for tweet in0 码力 | 221 页 | 844.06 KB | 1 年前3
peewee Documentation Release 3.6.0or contact me [http://charlesleifer.com/contact/]. Indices and tables Index Module Index Search Page Installing and Testing Most users will want to simply install the latest version, hosted on PyPI: **kwargs): kwargs.update( page=int(request.args.get('page', 1)), pages=qr.count() / 20 + 1) kwargs[var_name] = qr.paginate(kwargs['page']) return render_template(template_name view functions, checking for whether the session is authenticated and if not redirecting to the login page. def auth_user(user): session['logged_in'] = True session['user'] = user session['username']0 码力 | 377 页 | 399.12 KB | 1 年前3
共 16 条
- 1
- 2













