Environment Setup
« Previous EntriesPainless Amazon EC2 Backup
Friday, March 13th, 2009The past year on Amazon EC2 has taught me many things but first and foremost is back up consistently. I’ll say it again, back up consistently! Amazon even makes the backup almost painless, almost…
Amazon has EC2 (the compute cloud) and S3 (the data repository). Out of the box you can back up from [...]
Django Tips: UTF-8, ASCII Encoding Errors, Urllib2, and MySQL
Wednesday, September 24th, 2008Having completed many Django projects over the past two years, I’ve started to take some seemingly trivial things for granted. Cross referencing a project for one of these solutions a few days back made me realize that these things are not trivial to others. I remember looking through countless pags and forums for [...]
Porting Aware To Django
Monday, August 25th, 2008A few years back I started a PC profiling service known as Aware Labs. It was originally written in C++ with a Windows MFC downloadable client. Six months ago I re-wrote the static website front end in Django so I could get a better handle on news and static updates. Today I’m [...]
Installing MySQLdb Without Python Egg Problems
Saturday, May 31st, 2008When installing Django sooner or later you will come across a system that needs MySQLdb and sooner or later you will see the following error:
[Sat May 31 19:43:19 2008] [error] [client 99.165.134.196] PythonHandler django.core.handlers.modpython: ExtractionError: Can’t extract file(s) to egg cache\n\nThe following error occurred while trying to extract file(s) to the Python egg\ncache:\n\n [Errno [...]
UnicodeDecodeError Exception Fix On Templates
Wednesday, May 14th, 2008My friend Brian at HelpMeSue.com has found a work around for the dreaded UnicodeDecodeError exception. Here is his fix…
In Brian’s Words…
Using special Spanish characters. Try to load a template with a render_to_response and get a template UnicodeDecodeError exception thrown.
To fix the issue:
Run file on the template:
file static_page.htm
That produces: static_page.htm: ISO-8859 text, with very [...]
Installing Django And MySQL On MacBook Air Or OS X
Tuesday, April 15th, 2008I recently got a MacBook Air and decided to run a native Django install with MySQL. I set things up the wrong way first, then I went through and got things running the right way. OS X takes a little getting used to as it works a bit differently than typical Unix setups. [...]
WordPress Adventure – NoScript Hack Solved
Monday, March 24th, 2008I know this is a bit off the Django path but as it affects all my fellow Django bloggers who use Wordpress (any version), I figured I’d share. Over the past few days I noticed alot of <noscript> tags with weird links embedded in my blog, just above the comments. Then today my [...]
Its Not: InnoDB, MySQL, Django, or Developer Its The Unix Admin
Thursday, February 28th, 2008Almost exactly a month ago in my “Easy Fix: Mysql InnoDB: Database was not shut down normally” post I blamed InnoDB for my periodic crashes of MySQL which in turn brought down all my Django applications. Well InnoDB I owe you an apology.
The Real Probelm
The probelm as it turns out was alluded to [...]
Easy Fix: Mysql InnoDB: Database was not shut down normally
Friday, February 1st, 2008Sometime last week I noticed that my Django powered sites were returning “Internal Server Errors” about 3 times a day at random intervals. A bit of investigation and I noticed that MySQL was down and hence Django was barfing. I looked at the logs and there were no errors except that MySQL/InnoDB was [...]
When Django Apps Grow Up
Tuesday, December 11th, 2007I started using webfaction.com 6 months ago for my Django website hosting. I’ve deployed several sites to their servers with no worries. Things went smoothly with my shared host for a while… then the warning signs that I needed to upgrade began to appear. Within a week it was time to move [...]
« Previous Entries