Quantcast
Channel: Re-Cycled Air » Python
Browsing all 15 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Deploying Django 1.4 to Heroku

Note: It is assumed that your are keeping track of your changes using Git. If you aren’t, you’ll need to be to deploy to Heroku. If there is one thing that scares beginners away from Django, its the...

View Article


Image may be NSFW.
Clik here to view.

Deploying Django with Fabric

Fabric is a Python library and command-line tool for streamlining the use of SSH to deployment and sys-admin tasks. In the Django community Fabric has been picked up as the de facto standard for...

View Article


Image may be NSFW.
Clik here to view.

Extending Django’s Model.save() Method

I’m currently working on a project where I have a model named ‘Instructor’ with a few fields: first_name – CharField last_name – CharField departments – Many-toMany I found out at some point that I’d...

View Article

Image may be NSFW.
Clik here to view.

Installing Local Flavor with Django 1.5

I just started a new project using the latest release candidate of Django 1.5. One thing that I needed was the local flavor add-on so I could get a list of US states. This functionality used to be...

View Article

Image may be NSFW.
Clik here to view.

Update All PIP Packages

Revisiting an old Python + Django project made me realize that I needed to upgrade it’s PIP packages. Unfortunately, PIP doesn’t provide a way out of the box to update all of your installed packages at...

View Article


Image may be NSFW.
Clik here to view.

Copying Django Model Objects

Django’s ORM is top notch. It provides facilities to do almost anything you can think of with a database, and if it doesn’t, it still lets you execute arbitrary SQL to your hearts content. I’ve been...

View Article

Image may be NSFW.
Clik here to view.

Programmatically Adding Users to Groups in Django

I recently needed to add a large number of users to a permission group in Django. I had a hard time finding a way to do this in the documentation, so I thought I’d share my solution. from...

View Article

Image may be NSFW.
Clik here to view.

Saving within a post_save signal in Django

One of the more useful features of the Django framework is it’s extensive signaling capabilities. The ORM throws off a handful of signals every time a model is initialized, modified, saved, or deleted....

View Article


Image may be NSFW.
Clik here to view.

Lettuce Tags

Lettuce is a BDD (Behavior Driven Development) testing tool for Python based on the excellent Cucumber project. It has most of the same features that Cucumber has, and has proven invaluable in my...

View Article


Image may be NSFW.
Clik here to view.

Integration Testing With Django and Lettuce: Getting Started

The Ruby on Rails community has long been a proponent of Behavior Driven Development(BDD) and has a great ecosystem around it supporting that testing methodology. From Cucumber to Capybara, RoR...

View Article

Image may be NSFW.
Clik here to view.

Virtualenv Error: Could not find the …site.py element of the Setuptools...

For a few hours I was running into a problem whenever I would try to install my PIP requirements file. The install would go alright until it got to Distribute, at which point I would get an that ended...

View Article

Image may be NSFW.
Clik here to view.

Using Restangular with Django TastyPie

TastyPie’s JSON responses split the response into two sections: meta data and actual data. The meta is really nice, because it helps you data pagination, result counts, and the like, but it kind of...

View Article

Image may be NSFW.
Clik here to view.

Two Frameworks

The past couple of months have found me working diligently on work stuff, but also consistently dropping an hour a day on my current side project.  It just so happens that the side project and my...

View Article


Image may be NSFW.
Clik here to view.

Getting around memory limitations with Django and multi-processing

I’ve spent the last few weeks writing a data migration for a large high traffic website and have had a lot of fun trying to squeeze every bit of processing power out of my machine. While playing around...

View Article

Image may be NSFW.
Clik here to view.

Using the Django Per-Site Cache with the Nginx HTTP Memcached Module

For a long time I thought that the most interesting problems in my field were in scalability. Some people may be more interested in scaling, and others might be more into slick interfaces and fast...

View Article

Browsing all 15 articles
Browse latest View live


Latest Images