0

How would I run a Django application on, a digitalocean droplet let's say, with just using the development server Django provides. I've tried just running python3 manage.py runserver, but I can't pull it up with the browser from another computer

I know this is bad practice, but I really only need it up to demonstrate for a class project

1
  • 1
    Have you read the output immediately following startup? Commented Dec 11, 2014 at 22:15

2 Answers 2

3

by default runserver only listn on 127.0.0.1 that is not accessible from remote computer.

run

python3 manage.py runserver 0.0.0.0:8000

will solve it, simply check the real IP if the machine and use it as address in your browser

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

Comments

0

python3 manage.py runserver <your IP address>:8000

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.