On 8/6/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > You sound like you are wanting the full configurability of > django-admin.py, which is quite different. In that case, do what > django-admin.py does: call management.execute_from_command_line(...) but > pass in your own action_mapping dictionary. Alternatively, do whatever > processing you like by setting up an optparse.OptionParser instance and > processing the config variables along with the rest of the config > variables to your script.
No, I'm not want that, that's too much work. I just don't want to write: import settings in the scripte. What I want is just: from django.core.management import setup_environ setup_environ() And I think since manage.py can find the correct environment variable, why not let it do that. And if the tool is not just used for myself, make it more generally is better. Of course I can accept import settings now, after all it's handy enough. -- I like python! My Blog: http://www.donews.net/limodou My Django Site: http://www.djangocn.org NewEdit Maillist: http://groups.google.com/group/NewEdit --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers -~----------~----~----~----~------~----~------~--~---
