Re: Custom commands for manage.py

2012-04-28 Thread .
> Just redefine your Command class option_list: > class MyBadCommand(BaseCommand): >   option_list = () # no options at all... The problem is that I want to be able to write my own options. -- You received this message because you are subscribed to the Google Groups "Django users" group. To po

Re: Custom commands for manage.py

2012-04-27 Thread bruno desthuilliers
On Apr 26, 11:50 pm, "." wrote: > Hello, > > I have several questions connected with custom commands. > > 1. How to delete anything from this dict? Is there a specific method > for this? [1] > > >>> Poll.objects.all() > > [] This is not a dict, it's a QuerySet containing one single Poll instance

Custom commands for manage.py

2012-04-26 Thread .
Hello, I have several questions connected with custom commands. 1. How to delete anything from this dict? Is there a specific method for this? [1] >>> Poll.objects.all() [] 2. How to get rid of default options (which are available from --help (traceback, verbosity etc.))? Those are handled by B