For deploying Django apps, I tried PaaS such as Heroku and Pythonanywhere. It’s the turn of the DigitalOcean App Platform. And so far, this is the easiest and fastest way to deploy a Django app in production. There is awesome guide on how to do this on DigitalOcean’s tutorials.
For testing, I wrote a small application that generates a configuration snippet for configuring ssh on cisco devices. For simplicity, I didn’t use a database and static content. For such an application, in fact, there is no need for a server side, just JavaScript is enough :)
Comparing with the guide, I skipped the part with the database and statics. To avoid an error when calling python manage.py collectstatic
, I added the environment variable DISABLE_COLLECTSTATIC=1. In addition, as a virtual environment for python, I have use pipenv, with which everything is also perfectly deploying.
The result can be seen here for some time. When I have played enough, I will delete the application.