On 8/16/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 8/15/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > In implementing the "manage.py testserver" command, I've been struck > > by how large django/core/management.py has gotten. It's 1730 lines > > long -- and messy. > > > > I'd like to split this into several files, turning > > django.core.management into a package. > > As of changeset [5898], I've checked in this refactoring. Here's a > quick overview of the new design: > > * django/core/management is now a package. > > * django/core/management/commands is a package in which each module is > a django-admin.py command -- "syncdb.py", "runserver.py", etc. To add > or remove commands, just add/delete the modules in there; there's > nothing else to do (with one exception, which I'll bring up in a bit). > I want to know how to extend the user's own commands? For example, if there is a `commands` folder in user's project, so user can put his own customized command script file in `commands` folder, then management.py can find them. And this could be treated as global command extension. And for per installed app, there maybe also a `commands` folder, and management.py can find all command script file according to all installed apps' `commands` folder. Just a suggestion.
-- I like python! UliPad <<The Python Editor>>: http://code.google.com/p/ulipad/ My Blog: http://www.donews.net/limodou --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
