logo       

Re: Custom Manage.py Commands: msg#02233

DjangoUsers

Subject: Re: Custom Manage.py Commands


On Jul 30, 5:24 pm, Malcolm Tredinnick <malc...@xxxxxxxxxxxxxxxx>
wrote:
> On Thu, 2009-07-30 at 17:18 -0700, mviamari wrote:
> > I'm trying to create a custom manage.py command for my project.  The
> > example in the documentation only shows how to do this for custom
> > commands inside of an app.  Is it possible to do the same at the
> > project level?
>
> The concept doesn't particularly make sense, since Django is app-based.
> "Projects" are a bit of a convenient way of grouping things, but they're
> just a settings file, a root URL conf and some apps. Which is a way of
> saying that isn't supported.
>
> It's fairly logical, however, to create an app that only provides your
> support for things like that this. Lots of people have apps that just
> contain template tags or just contain templates or even management
> commands. They don't need to contain models or anything like that.
>
> Regards,
> Malcolm

The problem I had was that the commands weren't specific to a given
app, and I didn't want to have to replicate them in each one. A
special app just for additional commands makes much more sense.
Thanks.

Mike
--~--~---------~--~----~------------~-------~--~----~
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@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
django-users+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise