Yes I know its a bit wierd to see the word ‘OSX’ in an article by me…I recently bought a Mac for testing InaSAFE and fooling around with FOSSGIS software on OSX. Besides the 2 or three days it took to get it set up as a development machine for FOSSGIS stuff (as compared to… Read more »
Posts Categorized: GeoDjango
Django : Faking it with South
So we use the super awesome South to manage schema changes when we change our django models. Basically South works in the background to make sure that your database is always in a consistent state with your models. Recently I have been adding South to a project and deploying these updates to my server. One… Read more »
Django development with Eclipse and PyDev
Eclipse is a Java IDE right? Wrong! You can use it for other languages too! I have been needing to improve my debugging techniques for python and Django (more on that in the future). This post outlines how you can set up Eclipse with PyDev to work on an existing Django aplication. The benifits? A… Read more »
How to move a django project and its virtual environment
We do a lot of django work here at Linfiniti and always use a python virtual environment with each project so that the runtime requirements are isolated to that project. Our typical project looks like this: projectfolder +– django_project +– django_app +– python +– bin +– include +– lib … Read more »
Django: serving an image from a remote server
For a current project (using django), I wanted to get a dynamically generated image from a remote map server and return the image to the django view as an object (as opposed to returning a URL as a string). Here’s how it’s done (logic derived from this code snippet): import urllib import urllib2 import mimetypes… Read more »
Listing the number of records in all postgresql tables
I love bash and the gnu tools provided on a Linux system. I am always writing little oneliners that help me do my work. Today I was generating some fixtures for django (yes I am finally properly learning to use unit testing in django). I wanted to know how many records where in each table… Read more »
Help wanted: FOSS GIS and Python Geek in Africa
Are you a python programmer adept at django and other technologies in the web mapper’s toolbox? We have an exciting project on the go and are looking for someone to help us during the months of February and March 2011. You can work remotely if needed, or here in Swellendam, Western Cape, South Africa if… Read more »
Bending django flatpages to your will
I’ve been working on a web site for a client that uses django flatpages. Flatpages is a built in component that allows users to create static content within the admin interface and publish it to the web front end. Think of it as a basic content management system component for django. Out of the box… Read more »
jqGrid: Hands down the nicest grid control for JQuery
I’ve been surveying various grid controls for a web project. I thought I would save others from doing the same trawling and point you to jqGrid. Its beautiful, flexible and powerful – try some of their demos to see what I mean!