Using HTML in a Django form label
Published on July 11, 2010
I recently had the need to add some HTML to the label for a form field using Django. The solution is pretty easy, except I didn't see it written explicitly anywhere, and I missed the memo of the function I should be using. My form first just had the HTML ...
Read more.
Ubuntu 10.04, Django and GAE - Part 1
Published on June 12, 2010
I've started to get into Google's App Engine again, and have started developing a simple product that I had a use for. The initial first draft was a quick 200 lines in webapp, and it worked great. However, I'm starting to find certain things quite cumbersome. I'm a huge fan ...
Read more.
Ubuntu 10.04, Django and GAE - Part 2
Published on June 12, 2010
All my Django sites are running 1.2, which poses a conflict with writing apps for Google's App Engine, as use_library currently only supports I've already detailed. This document will hopefully show you ...
Read more.
Remove Dead Tags
Published on Sept. 21, 2009
I've noticed my django-tagging install has been giving a lot of empty entries when doing a lookup on a tag. Tonight I finally got around to looking at what was causing this. This is surely not the best way to do this, but at 12:00am on a weekday, well, I ...
Read more.
Alexa Thumbnail Service
Published on Dec. 28, 2008
Amazon offers some pretty cool services: S3, EC2, Alexa Site Thumbnail, and others. A while back I wanted to use AST with Django, so ended up writing the Python bindings to the REST API (they didn't previously exist. I even wrote up a quick tutorial. Update: Amazon ...
Read more.
Using Django with SQL Server and IIS
Published on Nov. 8, 2008
As you can tell from reading some of the other pages, I like Linux and open source. But I also like to answer the question "what if..." This post is my [brief] run down of answering "what if I could run Django on Server 2003 with SQL Server and IIS." ...
Read more.
And Yet Another Remodel
Published on March 19, 2008
I have finally decided to do another remodel of this site. I had a few goals before starting: Use one image Use the YUI-CSS framework Use Django Make it easily extendable So far, I think I've accomplished these goals. The site is easier to read, easy to ...
Read more.
Mass Spam Delete Django
Published on Oct. 2, 2007
As you can read, I've been traveling around quite a bit lately. This means I haven't been checking the comments on my blog, which means quite a bit of spam has been entered. I am blocking the spam via akismet, however, it is still recorded in the database. Being somebody ...
Read more.
Adding Search to Django
Published on June 3, 2007
This is fairly well documented in the Django docs, so I'll be brief. This is the the bit of search code I use in almost all of my Django sites, and it works great: def search(request): from django.db.models import Q q = request.GET.get("q", "") ...
Read more.
Django Syndication with Colddirt
Published on June 3, 2007
Creating feeds in Django is freaking simple. I'll start with an example of just updating a feed with the newest objects (for instace, newest blog posts). Similar to the forms.py way of handling our different forms, I've created a feeds.py to handle the feeds. feeds.py <pre class="brush: python; light: true ...
Read more.
Django Syndication with Colddirt II
Published on June 3, 2007
Since I've already covered a really simple syndication example, I'll move onto something a little more complex. Let's say you want to offer syndication that is slightly more custom. The Django syndication docs give an example from Adrian's Chicagocrime.org syndication of beats. I had to ponder a ...
Read more.
Django Newforms Usage in Colddirt
Published on June 1, 2007
I hear many complaints and questions about newforms, but I've personally found it rather easy and logical to use. There are numerous ways for you to use do forms in Django, and most likely the best way to see them all is to read the docs. On the Colddirt ...
Read more.
Simple Ajax with Django
Published on June 1, 2007
So, the Django developers, in my opinion, are freaking smart. Instead of bundling Django with a particular library, they have added XML and JSON serialization; us humble users can choose whatever AJAX library we want. Prototype 1.5.1 has been pretty fun to work with, so I'll kick off this ...
Read more.
Colddirt Information
Published on May 29, 2007
I wrote up the majority of this on a Friday night, so cut me a tad bit of slack:) Feel free to take a glance at the entire source. NoteColddirt's source code is run from Django SVN, check out on May 10th-ish. If you are using a newer branch, ...
Read more.
Django SVN Update Goes Splat
Published on May 9, 2007
I'm writing this just in case somebody runs into this same issue. I'm about to go live with a website and figured it would be best to have the latest SVN snapshot checked out from Django. I updated, and noticed that my voting module didn't quite work as expected. I ...
Read more.
Version 3.0 Part Two
Published on Feb. 5, 2007
Well, I'm basically all done upgrading to Version 3.0, I deserve a cake or something. Here's the 411: For the past few years I have been using Mambo, then Joomla, to manage the content on my site. It worked quite well, and was in PHP, so I could add or ...
Read more.