Reputation: 735
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:
The script contains the following:
Does anyone know why this is happening?
Upvotes: 0
Views: 530
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