December 28, 2011 6:27 p.m.
I wanted to share a quick practical example of how Fabric, can make your development life easier. If you're unfamiliar with Fabric I recommend checking out its tutorial which describes Fabric thusly;
Fabric is a Python (2.5 or higher) library and command-line tool for streamlining
the use of SSH for application deployment or systems administration tasks.
The tutorial is a great resource as Fabric does not have a dense API. In fact, it has a childishly simple API. Today, I found myself using it to simplify a process I had been repeatedly performing manually. A client site of ...
Read More
Updated 12/28/11 @ 06:27PM CST by dlacewell
Categories:
Django Python
Tags:
deployment
fabric
python
2 Comments
September 21, 2011 12:37 p.m.
GeoDjango is a very powerful tool for storing and manipulating geographic data using the Django ORM. It provides a simple API to determine distances between two points on a map, find areas of polygons, locate the points within a polygon, and much more.
GeoDjango is fairly well documented on the Django website. My aim with this walkthrough is to reduce the Django documentation to a simple set of steps that will quickly get you started experimenting with GeoDjango. As a result, some of the initial steps are summarized from the Django site with only slight modifications to fit the circumstances ...
Read More
Updated 09/21/11 @ 12:37PM CDT by jjasinski
Categories:
Django Python
Tags:
django
geo
geographic
geospatial
latitude
longitude
python
August 29, 2011 9:47 a.m.
At its minimum, the Django Admin is an effective tool for viewing and manipulating data within a Django database. At its max, it can be a robust application allowing clients and administrators to better manage their web applications. This article aims to highlight some of the admin customizations that I find particularly useful when trying to make the admin more than just a data browsing tool. If you’d like to follow along with this tutorial, you may view the associated, fully-functional Django Application at github: https://github.com/imagescape/chicagodjango-demo1. The purpose of this application is simply to demonstrate ...
Read More
Updated 08/29/11 @ 09:47AM CDT by jjasinski
Categories:
Django Python
Tags:
admin
customization
django
hacks
programming
python
August 03, 2011 10:37 a.m.
Right off the bat I'll admit bias. I think Imaginary Landscape is a great place to work. We've been around since 1995 and programming in Python since 1999. We are a 4-time sponsor of PyCon and a 3-time sponsor of DjangoCon. We hosted the first ChiPy meeting and are actively involved in Chicago Djangonauts. Imaginary was instrumental in getting DjangoCon US 2013 to Chicago. We are committed to making Chicago the center of the universe for Django.
Throughout the years, some great people have worked with Imaginary. Take a look at some of our staff and contractor alum ...
Read More
Updated 08/03/11 @ 10:37AM CDT by brian
Categories:
Django Python
For the fourth year in a row, we have just completed our sponsorship of PyCon. Each time I return to the office after the conference ends, I am filled with a particular energy. This year that energy is more pronounced.
In many ways, our day-to-day work is done in relative isolation. Most of our clients don't really know or care about the stack we use. Quite frankly, they wouldn't know Python unless it bit them in the 6. All the more reason why it is energizing to immerse in a group of people who care deeply.
Now that ...
Read More
Updated 03/23/11 @ 01:39PM CDT by brian
Categories:
Django Python
December 16, 2010 4:55 p.m.

If you've ever looked into creating your first Django project targeted at mobile devices, you were probably quick to realize that there is no be all, end all solution. Mobile development decisions have to be made with regards to handheld device detection, redirects, how to deal with desktop vs. mobile content, and so on. Your own requirements will have to dictate how you approach these decisions.
Hopefully, by explaining the mobile development goals we established at Imaginary Landscape and the steps taken to meet them, you can use this information as a foundation for your own mobile website built ...
Read More
Updated 12/16/10 @ 04:55PM CST by dbertrand
Categories:
Django Mobile Python
November 17, 2010 9:52 a.m.
Django forms are very convenient tools for Django development, but sometimes I find myself wrangling with them to get them to do what I want them to do. I’ve compiled a few simple form examples that I find useful for various form-related tasks.
Say you have a model that looks like this:
Example 1:
class MyModel(models.Model):
myfield1= models.CharField(u'Field 1 Name', help_text='Field 1 help',
max_length=20, blank=True)
myfield2 = models.CharField(u'Field 2 Name', help_text='Field 2 help',
max_length=20, blank=True)
As we know, generating a basic ModelForm for this model is ...
Read More
Updated 11/17/10 @ 09:52AM CST by jjasinski
Categories:
Django Python
Tags:
django
forms
python
October 28, 2010 3:41 p.m.
Of all the Django modules that are out there, several stand out as ones that I keep coming back to. These are some of my favorites:
1) Django Debug Toolbar - http://robhudson.github.com/django-debug-toolbar/ Django Debug Toolbar is an extremely useful Django application for debugging a site from “Django’s perspective.” It should only be used during the development of a site. This toolbar overlays an expandable menu over every page of your website. Upon expanding this menu, you can see all of the request variables and settings variables associated with that page. Also, it allows you to view ...
Read More
Updated 10/28/10 @ 03:41PM CDT by jjasinski
Categories:
Django Python
Tags:
compress
debug
django
extensions
favorite
modules
python
rosetta
south
September 01, 2010 11:53 a.m.
One of the most important decisions you make in the process of building a new Django application is what software stack you use to serve it to the world. You're not lacking for options: people run Django on Apache, lighty, nginx, and Cherokee. You also need to decide how to connect Django to your webserver. Popular choices are mod_python, mod_wsgi, and fastcgi. Django also supports multiple database backends, including PostgreSQL, MySQL, SQLite, and Oracle.
What follows is a description of the software and setup we use at Imaginary Landscape, along with explanations for why we made these choices. At ...
Read More
Updated 09/01/10 @ 11:53AM CDT by lholladay
Categories:
Django Python
The more we dig into DjangoCMS, the more we like it. Already, we have adopted it for a number of client sites as well as internal sites. We are extending it to handle more complex presentations and it is working great.
Its simple interface belies its sophistication, when configured well. It has proven to be so useful that we are installing it on client sites for our own use.
We continue to learn about it and put it through its paces. There is a lot that can be done without forking it off, which is highly appealing for client and ...
Read More
Updated 05/13/10 @ 11:21AM CDT by brian
Categories:
Django Python