Thanks a lot for your help Dylan,

Right after writing I noticed my mistake, I was naming the folder
my_app/management/command

I renamed it my_app/management/commands and voila!.

it worked like a charm.


Dtb/Gby
=======
Mario R. Osorio
A.S. of Computer Programming and Analysis
Web page: *http;//mario.osorio.solutions
<http://http%3B//mario.osorio.solutions>*
Email: *mario@osorio.solutions* <mario@osorio.solutions>
*Just Choose Python!* <http://www.gentoogeek.org/files/choose_python.pdf>

“If I had asked people what they wanted, they would have said faster
horses.”
 ― Henry Ford




<http://goo.gl/t2Hzgo>
            <https://m.do.co/c/63e2415dab7b>

On Sun, Oct 16, 2016 at 10:27 PM, Dylan Reinhold <dreinh...@gmail.com>
wrote:

> Is your my_command file named my_command.py?
>
> how are you calling it `manage.py my_command`?
>
> Dylan
>
> On Sun, Oct 16, 2016 at 7:04 PM, Mario R. Osorio <nimbiot...@gmail.com>
> wrote:
>
>>
>> By the way, there are *__init__.py* files in
>> both my_project/my_app/management/ and my_project/my_app/management/command
>> folders ...
>>
>>
>> On Sunday, October 16, 2016 at 9:58:25 PM UTC-4, Mario R. Osorio wrote:
>>>
>>> I am trying to implement a custom admin command. The class is located at
>>> mt_project/my_app/management/command/my_command
>>> and looks like this:
>>>
>>>
>>>
>>> class Command(BaseCommand):
>>>
>>> help = 'This is my command'
>>>
>>>
>>> def handle(self, *args, **options):
>>>
>>> ...
>>>
>>>
>>>
>>> My app is included in Installed_apps. I think I've covered all
>>> documented requirements yet; the command is just NOT available. manage.py
>>> tells me it is un "Unknown command"
>>>
>>> What am I doing wrong?
>>>
>>> Thanks a lot in advanced!
>>>
>>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/django-users/f679ba2c-cc77-41c6-a1b3-39e9482d5a61%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/f679ba2c-cc77-41c6-a1b3-39e9482d5a61%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/django-users/1PuWQKwfRcU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CAHtg44B3%2BuGFj446pYKbHfzPHB1K_
> 3WUiTWa2DO0KgxQ66WjXg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHtg44B3%2BuGFj446pYKbHfzPHB1K_3WUiTWa2DO0KgxQ66WjXg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO2PNV7QJa_BwHD5UTSxRSNfuHh7vQef74C7ctFDUxV5uphOeA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to