Wednesday, October 19, 2011

Re: manage.py --settings breaks IPython

Try executing

$: python --help


or

$: python -h


To see what it says about passing arguments to your script. I don't
have any other suggestions for you, unfortunately. Good luck.

On 10/19/2011 12:56 PM, h3 wrote:
> Doesn't work..
>
>> Error: Usage is runserver [optional port number, or ipaddr:port]
> And if I do the opposite:
>
> $: python manage.py runserver --settings=settings_dev --
>
> Same problem comes back.
>
> On Oct 19, 12:52 pm, James Pyrich<ja...@pyrich.com> wrote:
>> It might be attempting to interpret --settings as a Python option. Try
>> the following:
>>
>> $: python manage.py runserver -- --settings=settings_dev
>>
>> Any Python-specific settings go before the double-dash, etc., etc.
>>
>> On 10/19/2011 12:11 PM, h3 wrote:
>>
>>
>>
>>
>>
>>
>>
>>> I like to use IPython for debugging when developping, but it breaks if
>>> I use the --settings argument..
>>> So if I do this:
>>> $: python manage.py runserver --settings=settings_dev
>>> The server will run, but when IPShellEmbed is invoked I get this
>>> error:
>>>> Error in Arguments: "Illegal option '--settings=settings_dev'"
>>> When I do the same without the --settings=settings_dev everything
>>> works as expected..
>>> Any idea how I could workaround this ?
>>> Thanks

--
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