Can't you just accomplish the same goal by adding a couple of lines to
your settings file? Assuming you had an environ variable DSN set like
this:

DSN=ENGINE=mysql;NAME=data;USER=root;PASSWORD=redpill;HOST=localhost

then add:

import os
dsn = dict([kv.split('=') for kv in os.environ['DSN'].split(';')])
DATABASE_ENGINE = dsn['ENGINE']
DATABASE_NAME = dsn['NAME']
...

I'm under Windows so you might want to choose different delimiters than
'=' and ';' but you get the idea.

I guess it just seems like its easy enought to do in Python directly,
why would you need to really add a new feature to Django for this?

My two cents...


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to