| "Wrap your database tables with ORM objects to make easy selects, inserts, updates, and deletes" | |
| Blog(Base): | |
| post_id = Column(Integer, autoincrement=True) | |
| post = Column(Text) | |
| def __init__(self, post): | |
| self.post = post | |
| new_blog_post = Blog("original post") | |
| # Insert | |
| db_session.add(new_blog_post) | |
| # Update | |
| new_blog_post = "new post" | |
| # Select | |
| archived_blog_post = db_session.query(Blog).filter(Blog.post_id == 1).first() | |
| # Delte | |
| db_session.delete(archived_blog_post) | |
| "Create custom logic for page layouts with advanced templating systems provided by Chameloen, Jinja2 and Mako" | |
| ... | |
| {% block content %} | |
| ... | |
| {% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment