Custom commands for manage.py
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()
[<Poll: Poll object>]
2. How to get rid of default options (which are available from --help
(traceback, verbosity etc.))? Those are handled by
BaseCommand.option_list. But I haven't found a way to write a class
without them. Will it affect the functionality in some way if I get
rid of them?
[1] https://docs.djangoproject.com/en/dev/intro/tutorial01/
--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home