How do I set up a Django website on Amazon EC2 hosting?

前端 未结 4 748
感动是毒
感动是毒 2021-01-29 19:26

Can someone give specific steps on how to implement hosting of a Django-based website using Amazon\'s EC2 hosting service?

Is that possible?

My website source co

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-29 19:47

    Another option for you if you don't want to deal with setting up your server from scratch is to use BitNami Django Stack Amazon image. I'm a BitNami developer and worked on creating stacks for several Python applications. The BitNami Django Stack already includes MySQL 5.1, Apache 2.2 (with mod_wsgi) and Python with MarkDown, html5lib and python-openid installed. It also included django 1.3.

    You will need to install Django Debug Toolbar, create the database and copy your files in /opt/bitnami/apps/django/django_projects and run the python manage.py commands. After that you will need to configure apache to server your project if you want to use in production (instead of the django server).

    Before you try to deploy your application directly in the cloud you could use the native installers and test the deploy in your local machine.

    We also have a cost estimation tool. This is just for getting a rough idea for a simple EC2/EBS setup, Amazon is not always as expensive as you can expect although it depends on a lot of factors. (Although per your comments it seems that you already took a look at the costs).

提交回复
热议问题