Re: Custom Admin Command

2016-10-16 Thread Mario R. Osorio
sorio > 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: >>&

Re: Custom Admin Command

2016-10-16 Thread Dylan Reinhold
mand 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: >> >> &

Re: Custom Admin Command

2016-10-16 Thread Mario R. Osorio
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 loca

Custom Admin Command

2016-10-16 Thread Mario R. Osorio
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_app