Skip to main

Tag: Django

For more posts, return to the full posts list or browse all tags.

2023 Posts

  1. Article post type

    SQLAlchemy for Django Developers

    SQLAlchemy is a Python library for interacting with relational databases. It is a popular alternative to Django’s ORM used by frameworks such as FastAPI. In this article we will help curious Django developers write their first queries with SQLAlchemy, and highlight key differences.

    see all Article posts
  2. Article post type

    FastAPI Path Operations for Django Developers

    FastAPI path operations are the equivalent of Django views. In this article we explore the differences, advantages, and gotchas of using them from the perspective of a Django developer.

    see all Article posts

2022

  1. see all Talks & Workshops

2018

  1. see all Article posts
    The English Channel from above
    Article post type

    Django REST Framework & Channels

    We’ve begun exploring some patterns for how to add WebSocket push notifications to what is otherwise a RESTful API. This means, for us, using Django REST Framework and Django Channels in concert.

2017

  1. see all Article posts
    Old photograph of operators
    Article post type

    Django, Background Processes, and Keeping Users in the Loop

    When you have out-of-band processing in a web app, how do you let users know that the status of a task has changed? Depending on your front-end client, there are a few different approaches you might take.

  2. Name tags
    Article post type

    Three Names to Include in Your User Model

    (None of them is the username)

    The term “username” is ambiguous. When designing a user model there are several kinds of names that are useful to include.

    see all Article posts
  3. see all Article posts
    Celery stalk resembling a human shape
    Article post type

    Serializing Things for Celery

    Transmitting objects between web processes and worker processes is a requirement of many modern web apps. Given that the safest way to do so is to use a serialization format that only includes primitive data types, how can we send custom objects around?

  4. Marionette puppet in grassy field
    Article post type

    Server-Side Rendering For Client-Side Apps

    We want the convenience of a client-side single-page application using our MV* framework of choice, but don’t want to sacrifice the SEO and UX benefits of rendering the initial markup on the server. And while we’re not here to trash on Node.js, we’re also not ready to commit to an…

    see all Article posts

2016

  1. see all Article posts
    Marionette puppet visits a spa
    Article post type

    A Visit to the RESTful SPA

    You can’t always get away with a single-page app; sometimes you need server-side rendering. When you need both, here’s one approach.

2014

  1. see all Article posts
    SQLAlchemy
    Article post type

    PostgreSQL Transactions and SQLAlchemy

    SQLAlchemy defaults to implicitly opening a new transaction on your first database query. If you prefer to start your transactions explicitly instead, I’ve documented here my explorations in getting that to work.

2012

  1. see all Talks & Workshops
    Talk post type

    Testing and Django

    Past
    • – Santa Clara, CA

      PyCon