I ssh into the digital ocean server, run the django app, and i want to view the web server to see if the app is working correctly, there are no error logs so i assume so.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!
You can have the django service listen on your public IP by starting it with a command like:
For production, putting something like nginx in front of your app is a better idea. You can do this by first installing nginx
and then updating your /etc/nginx/sites-enabled/default file to read:
Then, restarting nginx:
Now you’ll be able to browse to your droplet’s IP (without specifying a port) and view your django application.