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 help doesn't list it and:
>
> >> $ ./manage.py import_vortaro
> >> Unknown command: 'import_vortaro'
> >> Type 'manage.py help' for usage.
>
> >> With the manage.py shell I can import the command and run it, so
> >> syntactically, everything is correct. I'm running a very recent  
> >> Django
> >> (r7534). Any ideas what's wrong and/or how to find out?
>
> > Hi,
>
> > I'm not sure if it matters, but have you added the 'vortaro' app to
> > INSTALLED_APPS in settings.py?
>
> It definitely matters.  Management commands *only* register for  
> installed apps, it's the only way the system knows how to find them.  
> However, if your app doesn't also have models, there could be other  
> bugs you should watch for that are currently filed in Trac.  For now,  
> just make sure you have a models.py file in there, even if you don't  
> have any contents in the file.
>
> gav

I have models and all this seems to be ok.
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to