georgez
georgez

Reputation: 735

Django manage.py error when run from a shell script

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?

Upvotes: 0

Views: 530

Answers (1)

Simeon Visser
Simeon Visser

Reputation: 122366

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.

Upvotes: 1

Related Questions