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 awesomeness [...]
March 3, 2010
Tags: django, iphone, mobile, python Posted in: Programming & Internet
5 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, it seems 100% [...]
January 28, 2010
Tags: django Posted in: Programming & Internet
9 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:
from [...]
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 have [...]
July 31, 2009
Tags: cron, django, python, webfaction Posted in: Programming & Internet
11 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 date [...]
June 22, 2009
Tags: date, django, range Posted in: Programming & Internet
No Comments
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 problem I [...]
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
12 Comments
Webfaction Review
I was looking at my web stats and noticed I was getting a lot of traffic to my limited review of Webfaction. To recap, I tried out there account then decided to cancel, and they were prompt and friendly at delivering a refund.
Since that time, I have set up two Webfaction accounts. When I started [...]
May 15, 2009
Tags: cpanel, directadmin, django, Ruby on Rails, webfaction, wordpress Posted in: Programming & Internet, Web Sites
39 Comments
Django: Login Form on Every Page
Up to the point, when it has come to Django user authentication and registrations, I’ve used django-registration as a plug and play solution. Authentication was frankly something I didn’t want to dive into, until now.
It turns out it is not scary at all. For my latest project, I had some space to fill in a [...]
March 31, 2009
Tags: django Posted in: Programming & Internet
19 Comments
Django: Filtering a ModelForm field
So something what should be so relatively easy can turn out to be quite hard when you don’t know where to go for the answer. Generally the #django channel on IRC is an awesome help, but this morning I felt invisible so I can too keep digging. Finally I found my answer in code from [...]
March 10, 2009
Tags: django Posted in: Programming & Internet
13 Comments



