Subscribe
Tutorial search

Python on Google App Engine: Creating blog engine. Part 2 - Python tutorial


In last part we configured very basic Flask application for Google App Engine. In this part we will add some models and forms to our application. Let's start with model Post which represents blog post. Create file blog/models.py:
Category: Python tutorials - Difficulty:


More cool Python tutorials:



Leveraging industrial-strength Python testing
Leveraging industrial-strength Python testing
This article asks what the Python frameworks do when they introspect a test module to discover what tests live inside of it. It also looks at details like how common test setup and teardown is supported, or not supported, by Zope, py.test and nose. Learn how these testing frameworks will support your Python development.
Difficulty:
Python 3 changes breaks backwards compatibility
Python 3 changes breaks backwards compatibility
The breaking of backwards compatibility will mean supporting two different versions in parallel. This article covers changes to input/output (I/O), the new bytes data type, changes to strings and string formatting, and finally, changes to the built-in dict type.
Difficulty:
Intro to Python Generators
Intro to Python Generators
Generators are a very cool Python abstraction that allows you to greatly simplify control flow and can also lead to much lower memory consumption.
Difficulty:
Pygame in 10 Easy Steps
Pygame in 10 Easy Steps
This is a line-by-line tutorial that will guide you through the basics of creating a simple game using the popular Pygame library. If you know Python and want to learn how to make games, start here!
Difficulty:
Avoid common querying mistakes with better Django models
Avoid common querying mistakes with better Django models
This article sheds light on some of the lesser-known features of the Django ORM in particular, but SQLAlchemy users may find some of the cautions about inefficient query generation applicable to their own code. Learn how to avoid common querying mistakes, use model managers to encapsulate complex queries, and take advantage of the powerful new aggregation features available in Django V1.1
Difficulty: