Archive for the 'Django' Category

A quick (one and a half day) Django and JQuery web hack to order spekkoek (Lapis Legit) via the office networks. Its a very simple application. It takes your order, validates the entry, calculates the total price, saves it to the DB and sends both me and the customer and e-mail notification. Most of the [...]


Download python-django 0.96 Ubuntu package from Launchpad (Gutsy)


This is a how to/guide on setting up a Django development environment on Ubuntu 7.04 (Feisty Fawn) using Eclipse and PyDev. Here I assume that you start with a fresh install of Feisty, please adapt accordingly.
Install Eclipse and Django
Open the terminal and type these:

# sudo apt-get install eclipse
# sudo apt-get install python-django

Or you can just [...]


Using Django for Non-Web Applications
Django is designed to be a web application framework. Unfortunately applications are not always purely ‘web-based’. Sometimes you need a background processing module that is clearly not web-based (CLI perhaps). Of course instead of reverting to plain SQL you would like to re-use your existing Django-based easy to use models and [...]


While reading the latest Django docs, I found out that Django is already available in the Debian and Ubuntu repositories. Fantastic! Here’s from the docs:
A packaged version of Django is available for Debian GNU/Linux, and can be installed from either the “testing” or the “unstable” repositories by typing apt-get install python-django.
When you install this package, [...]


In Django we can insert initial data to the database using raw SQL. While it is a nice feature it would be a fantastic if we could use Django’s ORM since it would be compatible with whatever database back-end we use. There is a guide in the Django Wiki for that but it would be [...]