DO Ideas 2

automatic django, et al. installer.

I was sold because this seemed neat and I thought it had a magical django installer.

  • Gezim
  • Sep 11 2018
  • Shipped
  • Sep 11, 2018

    Admin Response

    Thanks for the suggestion guys, we've launched the one-click Django image: https://www.digitalocean.com/community/articles/how-to-use-the-django-one-click-install-image It is now found under the applications tab inside of the control panel on the create page. Thanks! Moisey
  • Attach files
  • Phillip commented
    September 11, 2018 19:48

    This is a great start. The last step to make this convenient to use will be to add a django admin command to add the vhost:
    https://docs.djangoproject.com/en/dev/howto/custom-management-commands/

    I would like to see directories "sites-enabled" and "sites-available" for gunicorn (eg in /etc/gunicorn), with gunicorn.conf iterating through sites-enabled.

    The management command would only need to write out 2 files (filename the domain arg passed) using the templates you have already created: gunicorn.conf you just sub in the current working directory and put in a port, and nginx config file exactly the same with a vhost directive added. Maybe post number is 9000+(current num files in directory)

    This way once the droplet is installed you can add as many projects as you want wherever you want by downloading your django app, and issuing the command:
    python manage.py addvhost www.mydomain.com

    Phillip.

  • Warren Beyda commented
    September 11, 2018 19:48

    On Ubuntu Linux with nginix gunicorn postgresql and upstart in a virtual env.

  • Ben commented
    September 11, 2018 19:48

    +1

  • Moisey Uretsky commented
    September 11, 2018 19:48

    We have a pre-built Rails Stack and we will be adding other application stacks that are pre-installed with accompanying documentation on how its laid out to allow developers to get up and running faster using virtual servers.