This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Heya,
For anyone having similar issues you can follow some of these steps:
The Django development server (python manage.py runserver) binds to 127.0.0.1:8000 by default. To serve on a specific IP address, you need to explicitly specify it:
python manage.py runserver 0.0.0.0:8000
0.0.0.0 with your server’s IP address if required.If it hangs or takes too long:
Ensure that the server allows traffic on port 8000. Use the following commands to check and open the port:
sudo ufw status
sudo ufw allow 8000
If this is for deployment, the Django development server is not recommended. Use a production-ready server like Gunicorn or uWSGI with Nginx or Apache.
Example with Gunicorn:
pip install gunicorn
gunicorn --bind 0.0.0.0:8000 project_name.wsgi:application
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.