This is the documented path to my discovery of PostgreSQL 8.3, which I’ve never used before. Now that MySQL’s community is getting hammered to death by Sun, and thanks to all the good things I’ve heard about it over the years (including enhanced performance on multicore systems and greater scalability), I really wanted to install [...]
Installing PostgreSQL 8.3 on Leopard
April
23,
2008
Django · How to? · Open Source · Ruby on Rails
Add Your Comment (3)
Quick spec from your Python tests
April
17,
2008
Using Python’s own unittest package, here’s a small script that can iterate over your test suite to output a small, quick, nice list of the tests in your application:
import unittest
loader = unittest.TestLoader()
tests = loader.loadTestsFromName(’path.to.your.tests.package’)
for test in tests._tests:
print test._tests[0].__class__.__name__.replace(”Test”, “”)
for method in test._tests:
[...]
Django · How to? · Quality
Add Your Comment (2)
Django Architecture Approaches
April
4,
2008
I’ve just had a very interesting conversation with my colleague Marco about different approaches to the organization of code inside a Django application.
As you might know (and if you don’t I’ll tell you anyway), Django’s views (somehow occupying the “Controller” level in an MVC architecture) must take (at least) an HttpRequest instance as a parameter and must [...]
Architecture · Django · Open Source
Add Your Comment (11)
REST + HTTP (Basic + Digest) Authentication support for Django’s test Client class
March
5,
2008
Django has a nice support for unit and functional testing; however, its django.test.client.Client class does not support PUT and DELETE requests, which might be useful if, like me, you’re doing some kind of REST implementation using that framework. There’s an open ticket about it, but for the time being, here’s my wrapper that supports those [...]
Django · How to?
Add Your Comment (3)
Archimedes Reloaded
February
29,
2008
Give me an API and I’ll move the web.
OK, I’m actually building the API myself this time. That’s why so few posts this month. RESTful, featuring multiple export formats, secure, configurable, usable on top of any existing Django application. It can even generate its own wrappers in a myriad of programming languages.
Django · Software
Add Your Comment
Install MySQL_python in Leopard
January
15,
2008
I wanted to make my Django blog engine work on Leopard using MySQL as a database engine. I had a hard time making it work, partially because of my lack of knowledge of Python, partially because I am using MAMP instead of a “/usr/local/mysql”-like MySQL installation, partially because of Leopard itself.
The problem is, basically, that [...]
Apple · Django · How to?
Add Your Comment (4)
My first Django project
January
11,
2008
So here it is, my first Django project: the gazillionth blog engine on the planet!. As if there weren’t enough, right? :) Actually it was a practical and easy way to learn the Django project, and the result is pretty neat. Feel free to download it, play with it, and give me [...]
Django · Opinion · Ruby on Rails
Add Your Comment (20)
Django Blog Engine (Python, 2008)
January
11,
2008
Version: 1.0
Author: Adrian Kosmaczewski
Date: January 11th, 2008
Programming Languages: Python
Tools: Django Framework, Python, SQLite
Platforms: Mac OS X 10.5 “Leopard”, Kubuntu Linux 7.10, Windows XP SP 2
Downloads: Source Code
Licence: Creative Commons Public Domain
This application is a simple blog application, done as a learning exercise of both Python and the Django Framework.
Features:
It supports the creation [...]
Whatever
Comments Off
Starting with Django in Leopard
January
9,
2008
As I’ve written earlier, I’m playing with Django these days. It’s a refreshing change, I must say, even if I admit that I prefer Ruby’s syntax to Python’s. Of course that’s just a purely subjective impression (I’m writing this while I try to avoid the rotten tomatoes thrown by angry pythonistas reading this) that does [...]
Books · Django · How to?
Add Your Comment
Django & Leopard & the UTF-8 error
January
9,
2008
If you use Django on Leopard, you might encounter a strange “Locale UTF-8 not found” error when running your application. This is due to a bug in Terminal.app, albeit an easy to fix one: just go to the Preferences pane / “Settings” page / “Advanced” tab and uncheck the “Set LANG environment variable on startup” [...]
Apple · Django · How to?
Add Your Comment (3)