All articles tagged Development

Thumbnail image for Django Patterns: Fat Models and cached_property

Django Patterns: Fat Models and cached_property

<p>One of my favorite patterns in Django is the combination of “fat” models and</p><p>cached_property</p><p>from</p><p>django.utils.functional</p><p>.</p><p>Fat models are a general MVC concept which encourages pushing logic into methods on your Model layer rather than the Controller (“view” …</p>
Thumbnail image for Linting SCSS with sass-lint

Linting SCSS with sass-lint

<p>Linting SCSS with sass-lint</p><p>Complex projects always require multiple developers and design heavy web sites are no exception. Sass/SCSS is still our language of choice when writing CSS, both for its wide support and flexibility. The latter can be a …</p>
Thumbnail image for Django Anti-Patterns: Signals

Django Anti-Patterns: Signals

<p>Django’s</p><p>Signal Dispatcher</p><p>is a really powerful feature that you should never use. Ok, it has valid use cases, but they may be rarer than you think.</p><p>First, to dispel a misconception about signals, they are not executed asynchronously. There …</p>
Thumbnail image for Multiple Sites with Routing in uWSGI

Multiple Sites with Routing in uWSGI

<p>In another of our “you can do that?!?” with uWSGI posts, today I’ll show you how to use uWSGI to host multiple sites</p><p>and</p><p>properly route traffic based on the hostname to those sites.</p><p>Multiple Sites (aka Emperor Mode)</p><p>uWSGI …</p>
Thumbnail image for Serving Static Files with uWSGI

Serving Static Files with uWSGI

<p>Serving Static Files with uWSGI</p><p>As noted in a previous post,</p><p>uWSGI is a Swiss Army knife</p><p>of functionality. One of its features is a built-in static file server.</p><p>When to Use uWSGI for Serving Static Files</p><p>While it may …</p>
Thumbnail image for Debugging Go Code

Debugging Go Code

<p>Four years ago, I wrote a blog post called</p><p>Introduction to Go Debugging with GDB</p><p>. At the time, the only option was the GNU debugger. Even the</p><p>official Go documentation</p><p>page on GDB doesn’t set the bar very high: …</p>
Thumbnail image for Sharing Media Files Without S3

Sharing Media Files Without S3

<p>Nowadays, it’s common to deploy multiple application servers, but it poses a very common problem; How are these application servers going to share the media files contributed by the users?</p><p>Cloud providers like Google, Rackspace or Amazon Web Services solve …</p>
Thumbnail image for How We Manage Our Company-wide Secrets

How We Manage Our Company-wide Secrets

<p>This post could have been titled, “How We Use OpenPGP to Protect Our Secrets.” All the use cases illustrated below use a tool called GnuPG to take care of the crypto details for us. GnuPG is a complete and free …</p>