0

When I type and execute the command python manage.py runserver localhost:8080 directly in the terminal everything works fine but when I place the command inside a shell script I get the following error:enter image description here

The script contains the following: enter image description here

Does anyone know why this is happening?

3
  • 1
    Do you have any spaces or characters in the script after runserver? Commented Dec 4, 2013 at 10:35
  • That's it! I did wrote the script with vim and I forgot about the space characters. Can you upgrade your comment to an answer? Commented Dec 4, 2013 at 11:24
  • Fair enough, I have made an answer with that. Commented Dec 4, 2013 at 11:33

1 Answer 1

1

There are spaces in the script after runserver.

You should remove these to ensure you're only running the desired command without any indication of host / port.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.