Re: How to create a new command in django-admin.py

2012-02-23 Thread Johan
Well I can think of a whole lot of ways in which this can be done
'better' :) ... But, I don't have the time to change django atm so I
will have to live with it :) ...

Thanks for the help ...

On Feb 23, 4:14 pm, Tom Evans  wrote:
> On Thu, Feb 23, 2012 at 1:22 PM, Johan  wrote:
> > Hi
>
> > I know how to create a new command in manage.py, this link explains it
> > nicely 
> > :https://docs.djangoproject.com/en/dev/howto/custom-management-command...
> > . But how do I create new command which would be available in django-
> > admin.py or in manage.py BUT without having to add the application to
> > the INSTALLED_APPS tuple?
>
> > Regards
> > Johan
>
> This should be on django-users, unless you are proposing a new way of
> doing this.
>
> The answer to your question is "you can't", btw.
>
> Cheers
>
> Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.



Re: How to create a new command in django-admin.py

2012-02-23 Thread Johan
Nope there is not. I just thought it could be done as easily as for
manage.py.

Thanks

On Feb 23, 4:13 pm, Jani Tiainen  wrote:
> 23.2.2012 15:22, Johan kirjoitti:
>
> > Hi
>
> > I know how to create a new command in manage.py, this link explains it
> > nicely 
> > :https://docs.djangoproject.com/en/dev/howto/custom-management-command...
> > . But how do I create new command which would be available in django-
> > admin.py or in manage.py BUT without having to add the application to
> > the INSTALLED_APPS tuple?
>
> > Regards
> > Johan
>
> Only way to achieve what you're asking is to modify Django source code -
> basically building in your command into Django core.
>
> Is there real rationale to do that?
>
> --
>
> Jani Tiainen

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.



Re: How to create a new command in django-admin.py

2012-02-23 Thread Tom Evans
On Thu, Feb 23, 2012 at 1:22 PM, Johan  wrote:
> Hi
>
> I know how to create a new command in manage.py, this link explains it
> nicely : 
> https://docs.djangoproject.com/en/dev/howto/custom-management-commands/#command-objects
> . But how do I create new command which would be available in django-
> admin.py or in manage.py BUT without having to add the application to
> the INSTALLED_APPS tuple?
>
> Regards
> Johan

This should be on django-users, unless you are proposing a new way of
doing this.

The answer to your question is "you can't", btw.

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.



Re: How to create a new command in django-admin.py

2012-02-23 Thread Jani Tiainen

23.2.2012 15:22, Johan kirjoitti:

Hi

I know how to create a new command in manage.py, this link explains it
nicely : 
https://docs.djangoproject.com/en/dev/howto/custom-management-commands/#command-objects
. But how do I create new command which would be available in django-
admin.py or in manage.py BUT without having to add the application to
the INSTALLED_APPS tuple?

Regards
Johan



Only way to achieve what you're asking is to modify Django source code - 
basically building in your command into Django core.


Is there real rationale to do that?

--

Jani Tiainen

--
You received this message because you are subscribed to the Google Groups "Django 
developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.