On 2/13/06, Bill de hÓra <[EMAIL PROTECTED]> wrote: > > limodou wrote: > > > You may not understand what I want. For example: > > > > [...] > > > > So I think .py configuration file is not user friendly to a IDE. > > I read this, and don't understand how not using Python solves your problem. > > -1 from me. >
I don't want to touch this subject more. If you don't understand I'll explain it again: I want to using a tool to update the settings.py and urls.py programmatically, not only reading, but also writing. And even though I'v finished a project named djangoinstall, it can parsing, updating, and saving settings.py and urls.py, and it also can remain many comments in settings.py and urls.py, so someone maybe cann't distinguish the configuration files was changed be a tool. But my code parsing and saving settings.py and urls.py is a hacking way, not the standard way supported by django. So I want django can provide a starndard way or standard api to let me do this things. Maybe the topic isnot very clearly express my willings, I'v option other toptic about I want automatic suppor provided from django. What you said that hacking settings.py and urls.py is right, but I don't hope others also need to do this again. If there is a way, it can permit user customize there own configuration files but doesnot change the settings.py and urls.py that's will be better. And as I posted the tiket and this topic, what I could thing out is just "Convering python file to text file", but maybe is not very well. So if there is a standard way to do these things and I can used it in program(so maybe some apis are better), so that's will resolve my problem. If you are interesting in djangoinstall, can see what it can do, you can download it from: http://wiki.woodpecker.org.cn/moin/LimodouShare?action=AttachFile&do=get&target=djangoinstall.tar.gz there is a readme.html you can read a simple tutorial about what a installation tool can do. So the question is that: It's not that I cannot find a way to hack settings.py and urls.py, but I want to create some tool can do some automatic works, and django sould provide some official standard support or APIs for these things. That it is. I hope someone can understand me. thanks. BTW, I'v mentioned that even though that django doesnot provide a official standard support for customization configuration, I'v also finished a project. So it isnot that I cann't find out a way to hacking settings.py and urls.py for my aim, but I hope there is a official stardard support or apis, so someone like me can create some tools for automatic works. And I also hope others can enjoy these tools also if they need such one. -- I like python! My Blog: http://www.donews.net/limodou NewEdit Maillist: http://groups.google.com/group/NewEdit