This message is coming to you via a simple Django application that's live on your Droplet! This droplet is all set up with Python, Django, and Postgres. It's also using Gunicorn to run the application on system boot and using nginx to proxy traffic to the application over port 80.
ssh root@nerdsflix.com
git clone
your code onto the droplet. You can try to reuse this project, located in /home/django/django_project
, or start fresh in a new location and edit Gunicorn's configuration to point to it at /etc/systemd/system/gunicorn.service
. You can also change how nginx is routing traffic by editing /etc/nginx/sites-enabled/django
cd
into the directory where your Python code lives, and install any dependencies. For example, if you have a requirements.txt
file, run pip install -r requirements.txt
.
PID=$(systemctl show --value -p MainPID gunicorn.service) && kill -HUP $PID
The standard Django admin area is accessible at /admin. The login and password are stored in the DJANGO_USER*
values you see when you call cat /root/.digitalocean_passwords
while logged in over SSH.