On 8/7/06, Antonio Cavedoni <[EMAIL PROTECTED]> wrote: > > On 6 Aug 2006, at 14:20, limodou wrote: > > And you can also add these code at the top of your script: > > > > import settings > > from django.core.management import setup_environ > > setup_environ(settings) > > > > So you don't need to setup DJANGO_SETTING_MODULE env variable any > > more. But the settings module should be settings. > > I'd rather not do this as I would prefer not hardcoding the name of > the settings module. I know it's the default auto-generated one but I > am used to rename the settings module to stuff like > settings_development or settings_production etc.
Just like me. So that why I discuss in the thread: http://groups.google.com/group/django-developers/browse_frm/thread/571b453e71a56f77/# And I think if I can run external script just like: manage.py run script is the best still. > > > And other suggestion is: can methods be displayed in dot? > > I *think* so, I'll have a look. > > Thanks again! > -- > Antonio > -- 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 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 -~----------~----~----~----~------~----~------~--~---