Archive for the ‘Programming & Internet’ Category
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
Basic Authentication on mod_wsgi
I’m currently in the process of creating an iPhone app for Inzolo. This requires an API of course. I wanted to take advantage of what was currently available for Django and I came across wapi. Time is of the essence so I decided to take the easiest route and use basic authentication for now. (I’m [...]
January 11, 2010
Tags: api, authentication, basic auth, djanog, mod_wsgi, piston, wapi, webfaction, wsgi Posted in: Programming & Internet
10 Comments
Fixing IE Issues
This morning for whatever reason I was loathing IE. I hadn’t done any development work all weekend so I don’t even know why it was on my mind. In any case I had an epiphany of sorts. Despite being totally proprietary, IE seems to be the most easily exploited browser due to its support of [...]
December 15, 2009
Tags: Chrome, Google, IE Posted in: Programming & Internet, Technology
37 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
IE & JSON Caching Bug
I came across a weird bug. It seems that IE is the only browser that has a tendency insists on caching JSON results. I created a little api call that returned a list of users “favorites”. I use jQuery to retrieve this list and make updates to my site. Well apparently IE caches the JSON [...]
September 17, 2009
Tags: cache, IE, jquery, json Posted in: Programming & Internet
26 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



