Posts Tagged ‘Django’

More articles on the topic…

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.

Read More

Three Names to Include in Your User Model

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

Read More

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?

Read More

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 all-JavaScript tech stack. Here's our attempt to have the best of both worlds, all the while keeping duplication of logic or code between the front-end and back-end worlds to a minimum.

Read More

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.

Read More

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.

Read More

Let’s Build Something Together!

We want to hear all about your software ideas. Fill out our contact form, join our public Slack chat, or tweet @oddbird to start the conversation.