Hello,
  Currently one can create a custom command by implementing a Command
object in a python module such as
"polls/management/commands/closepoll.py". It would be great if Django
also supported these commands being implemented in a python package so
in this case Command would be found in
"polls/management/commands/closepoll/__init__.py". This would be
useful when a command contains a lot of logic or code and the
developer would like the ability to split up the logic into multiple
files to make the code base more manageable. I faced this issue
recently when I implemented a command that would be run as a cron job
to periodically import data into Django from a legacy system that had
some pretty hairy logic to deal with.
   I've already made the changes to support the feature, it only
required a change to the function
django.core.management.find_commands() to look for packages as well as
modules in each commands directory. I thought I'd run it by
django-developers before creating the ticket on trac with the patch.
What do you guys think?

cheers,
Marwan AlSabbagh

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" 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-developers?hl=en.

Reply via email to