Friday, August 27, 2010

Re: "unknown command" from almost all admin commands

On 27 août, 05:51, bluearth <barkah.yu...@gmail.com> wrote:
> Hi,
>
> I'm trying to have multiple configuration files for my project as
> described inhttp://www.djangobook.com/en/2.0/chapter12/.
>
> I always get the following when issuing administrative commands (for
> example):
>
> # ./manage.py --settings=harmony.settings_dev syncdb
> Unknown command: '--settings'
> Type 'django-admin help' for usage.
> #
>
> Seems that only --help and --version works as expected. others give me
> "unknown command"
>
> I'm not sure if i have missed something here.

First point, "--settings" is an option, not a command. Second point,
the correct usage (as documented) is "manage.py subcommand [options]
[args]".

IOW, you want:
# ./manage.py syncdb --settings=harmony.settings_dev

HTH

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate