My Django Dev Environment: Virtualenv, pip, git, & PyCharm
Even though I’ve heard how wonderful virtualenv & pip are for managing Django development environments, I didn’t think I needed to bother learning it. But one bored day I did. I’m so glad I did. Truth is, it is just as simple and awesome as everyone says it is. And it’s been so helpful with [...]
October 14, 2011
·
Dustin ·
8 Comments
Tags: django, git, pip, pycharm, python, virtualenv · Posted in: Programming & Internet
Python IRC Bot Using Twisted (Rollbot)
I wrote my first IRC bot recently. It turned out to be a simpler task than I thought it would be. Here’s the back story: At work, our programming team uses an IRC channel for all our internal communication throughout the day. What more would you expect from a bunch of programmers? Recently I’ve been [...]
April 28, 2011
·
Dustin ·
15 Comments
Tags: BeautifulSoup, Friday, irc, python, Rebecca Black, RickRoll'd, twisted · Posted in: Programming & Internet
Django smart_unicode
So my QA guy is putting an app through the ringer and presented me with the following error on a page: Caught UnicodeEncodeError while rendering: (‘ascii’, u’Utf8-\u010a\u010e\ufffd”\u0117′, 5, 8, ‘ordinal not in range(128)’) For some reason I thought UTF8 characters Just Worked™ in Django, but that was a bad assumption. The problem came from my [...]
March 11, 2011
·
Dustin ·
7 Comments
Tags: django, encoding, python, unicode, utf8 · Posted in: Programming & Internet
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
·
Dustin ·
14 Comments
Tags: django, iphone, mobile, python · Posted in: Programming & Internet
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
·
Dustin ·
12 Comments
Tags: cron, django, python, webfaction · Posted in: Programming & Internet
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
·
Dustin ·
7 Comments
Tags: django, jquery, json, python, simplejson · Posted in: Programming & Internet
Setting up Django on a WHM/cPanel VPS (LiquidWeb)
I ordered a new VPS from LiquidWeb for the purpose of using it to host our company’s new product that I’m currently writing in Django. I have another VPS with LiquidWeb and I highly recommend them! I got Django up and running on my other server with some help of LiquidWeb support. This time I’m [...]
September 25, 2008
·
Dustin ·
8 Comments
Tags: cpanel, django, python, whm · Posted in: Programming & Internet


