On Thu, Apr 16, 2009 at 04:04:29PM +0800, Russell Keith-Magee wrote:
> On Thu, Apr 16, 2009 at 11:30 AM, Phil Mocek wrote:
> > The built-in usage help shows that the filename argument (called a
> > fixture for reasons that I have not yet researched) is mandatory:
> >
> >    Usage: manage.py loaddata [options] fixture [fixture ...]
> >
> > However, manage.py does not report an error when a fixture is not
> > specified:
> >
> >    $ ./manage.py loaddata
> >    $ echo $?
> >    0
> 
> The fact that no error message is raised for the 'you didn't provide
> any arguments' case looks like a bug to me.  This should be logged
> as a new ticket so it isn't forgotten.

Done.  I opened #10849 (management loaddata: bad syntax not reported,
results in successful return code) [1] and associated it with component
"django-admin.py".

Also, I previously made note of this behavior in #10200 (loaddata
command does not raise CommandError on errors) [2].


References:

[1]: <http://code.djangoproject.com/ticket/10849>
[2]: <http://code.djangoproject.com/ticket/10200#comment:5>

-- 
Phil Mocek

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to