I found the best way to do this is python manage.py < script.py On Jul 21, 2011 8:00 PM, "Gelonida N" <[email protected]> wrote: > On 07/18/2011 04:33 PM, bruno desthuilliers wrote: >> On Jul 18, 3:33 pm, Alexander Crössmann >> <[email protected]> wrote: >>> Hi Malcom, >>> >>> I am not sure the management commands are what I want >> >> Strange enough, it seems that everyone starts by saying this and ends >> up writing custom management commands ;) >> > > > I wrote quite some scripts meanwhile, which just set > DJANGO_SETTINGS_MODULE and use then the models. > > I think if a django model is only a tiny part of a bigger script, then > management commands are not really advantageous over management commands. > > Another issue, that I had is trying to use django under windows with py2exe. > > Management commands are no more found, as django would require the > python source code in order to find existing management commands. > > Perhaps there is an easy work around, but I am not aware of one. > > > > > -- > You received this message because you are subscribed to the Google Groups "Django users" 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-users?hl=en. >
-- You received this message because you are subscribed to the Google Groups "Django users" 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-users?hl=en.

