I am running a mongo database on Digital Ocean. I’ve set it up with the following tutorial: Mongodb setup and secured it with this tutorial: MongoDb security Now I am trying to create a dump of a particular database. I am using the following command as stated in this article: Backup & Restore Mongodb: sudo mongodump –db dbName –out /var/backups/mongobackups/date
Tag: digital-ocean
How to include Django static URL using JavaScript?
I have a django application storing static images on digital ocean spaces. I can easily display these static images in my template by doing:<img>{% static ‘images/my_image.png’ %}</img> If I inspect the HTML page after this loads, I will see something like: https://nyc3.digitaloceanspaces.com/nameofmyspace/nameofmyspace-space-static_DEV/images/my_image.png?AWSAccessKeyId=XXXXXXXXXXXXXX&Signature=XXXXXXXXXXXXXXXXXX%3D&Expires=1621600823 But now I want to have this image change dynamically using javascript. So I tried: document.getElementById(id+”dynamicImage”).src = “{%