Re: Custom management command

2008-05-15 Thread J . Pablo Fernández
I would have thought Django did it by itself, or actually, manage.py. After all, when I do manage.py shell, the pythonpath seems to be correct for me to do import bonvortaro. On May 15, 8:20 am, Alex Morega <[EMAIL PROTECTED]> wrote: > On May 15, 2008, at 09:52 , J. Pablo Fernández wrote: > > > I

Re: Custom management command

2008-05-15 Thread Alex Morega
On May 15, 2008, at 09:52 , J. Pablo Fernández wrote: > ImportError: 'No module named bonvortaro' > > In the process of getting the commands, it tries to import the package > and it fails. I could try setting up the pythonpath or something like > that, but that would be only a workaround. There

Re: Custom management command

2008-05-15 Thread J . Pablo Fernández
It actually looks like a bug, If nobody did it, I'll try to reproduce it this afternoon and report the bug. On May 15, 7:52 am, J. Pablo Fernández <[EMAIL PROTECTED]> wrote: > Ok, debuging showed me a problem. > > ImportError: 'No module named bonvortaro' > > In the process of getting the command

Re: Custom management command

2008-05-14 Thread J . Pablo Fernández
Ok, debuging showed me a problem. ImportError: 'No module named bonvortaro' In the process of getting the commands, it tries to import the package and it fails. I could try setting up the pythonpath or something like that, but that would be only a workaround. There should be a better solution (a

Re: Custom management command

2008-05-14 Thread J . Pablo Fernández
On May 14, 10:48 pm, George Vilches <[EMAIL PROTECTED]> wrote: > On May 14, 2008, at 5:23 PM, Alex Morega wrote: > > > > > > > On May 14, 2008, at 23:37 , J. Pablo Fernández wrote: > >> I've made a custom management command like this: > >> [...] > >> but it is not being picked up. ./manage.py he

Re: Custom management command

2008-05-14 Thread J . Pablo Fernández
On May 14, 10:23 pm, Alex Morega <[EMAIL PROTECTED]> wrote: > On May 14, 2008, at 23:37 , J. Pablo Fernández wrote: > > > I've made a custom management command like this: > > [...] > > but it is not being picked up. ./manage.py help doesn't list it and: > > > $ ./manage.py import_vortaro > > Unk

Re: Custom management command

2008-05-14 Thread George Vilches
On May 14, 2008, at 5:23 PM, Alex Morega wrote: > > On May 14, 2008, at 23:37 , J. Pablo Fernández wrote: >> I've made a custom management command like this: >> [...] >> but it is not being picked up. ./manage.py help doesn't list it and: >> >> $ ./manage.py import_vortaro >> Unknown command: 'i

Re: Custom management command

2008-05-14 Thread Alex Morega
On May 14, 2008, at 23:37 , J. Pablo Fernández wrote: > I've made a custom management command like this: > [...] > but it is not being picked up. ./manage.py help doesn't list it and: > > $ ./manage.py import_vortaro > Unknown command: 'import_vortaro' > Type 'manage.py help' for usage. > > With t