Integrate MailChimp with your Django App
Here’s a quick & easy method for integrating MailChimp into your next Django application. 1. Sign up for MailChimp <– this is an affiliate link. Sign up is free, but if you decide to upgrade to a paid account you will get a $30 credit by using this link. 2. Install greatape sudo pip install [...]
May 21, 2010
Tags: django, mailchimp Posted in: Programming & Internet
10 Comments
Extending Django settings.py File
When first learning Django & python, one issue I had was how to store my settings.py file in SVN. It’s been a while and things are a little hazy, but I remember my settings.py file in my local development environment was always out of sync and I was careful not to include it in updates. [...]
May 13, 2010
Tags: django Posted in: Programming & Internet
11 Comments
Implementing a Forgot Password Feature on a Django Site
Here is something that seems to be quite common on any type of membership site – members forget their password. This morning I was about to write this and I though surely there must be something build in. Surely. It’s turns out it is built in quite nicely and very easy to use. Start with [...]
April 22, 2010
Tags: django, forgot password, password reset Posted in: Programming & Internet
No Comments
Mobile App on Subdomain with Django
I’ve noticed a fairly common pattern arising with mobile and iPhone versions of websites using sub-domains. Clicky is an excellent example of this. They provide an iPhone version of their site at i.getclicky.com and a generic mobile version at m.getclicky.com. I want to create something similar for Inzolo.com. I assumed that Django, with all its [...]
March 3, 2010
Tags: django, iphone, mobile, python Posted in: Programming & Internet
9 Comments
Django: ProgrammingError: Can’t Adapt
I find I get an error like this far too often, but not often enough to remember why I got the problem the previous time. For my own sanity, I’m blogging about it for reference. The error itself is not very descriptive: Exception Type: ProgrammingError Exception Value: can’t adapt Unless there is something I’m forgetting, [...]
January 28, 2010
Tags: django Posted in: Programming & Internet
11 Comments
Copy Model Object in Django
I ran into a situation where I wanted to created a new database record from an existing record (model object). I figured there should be a fairly simple solution. It turns out there is and I want to thank Seveas on IRC #django for pointing it out for me. This is essentially what I did: [...]
November 5, 2009
Tags: django Posted in: Programming & Internet
17 Comments
Django cron on Webfaction
James Bennett addresses one of the most frequently asked questions in Django – “How do I write a standalone script which makes use of Django components?” That is what I needed to do. I’m still learning Python so I wasn’t sure why the methods he described in his article didn’t work for me. (OK, I [...]
July 31, 2009
Tags: cron, django, python, webfaction Posted in: Programming & Internet
12 Comments
Django: Filter Model on Date Range
I’m sure this is in the documentation *somewhere* but it wasn’t totally obvious to me and I knew there had to be an easy way to filter a model based on a date range. I’m in the process of filtering transactions for Inzolo and giving the user options for the following date filters: Month to [...]
June 22, 2009
Tags: date, django, range Posted in: Programming & Internet
Comments Closed
Django & Djson… er, JSON
I must admin this is my first attempt at even using JSON. I wanted to produce some data that I could consume with jQuery and I figured JSON was the best format for the job. I found Django has a method for serializing Model query sets easily and it seemed to work just fine. The [...]
May 21, 2009
Tags: django, jquery, json, python, simplejson Posted in: Programming & Internet
7 Comments
One Click Django Project Publishing
I was reading The Joel Test and I got to number #2 which says "Can you make a build in one step?" My initial thought was that there aren’t really builds per se in web applications (unless you use ASP.NET). But then I thought, I wonder if I could make publishing my Django application a [...]
May 15, 2009
Tags: django, plink, putty, ssh, subversion, webfaction, windows Posted in: Programming & Internet
13 Comments



