ec2 aws   0   1095
How to setup Django app on EC2 instance (AWS) - Part 2

In the previous part of article we completed the environment setup to host the Django app on EC2 instance of AWS.

How to setup Django app on EC2 instance (AWS) - Part 1.
Hosting Django Apps on PythonAnyWhere server for free. Step by step guide.

In this article we will start from where we left in last part.



Database initialisation:

Activate the virtual environment. source venv/bin/activate

Make migrations. python manage.py makemigrations

If you get a message - No changes detected then make sure migration files from development environment are not present. If still same message is received, mention the name of app with makemigration command. python manage.py makemigrations app1 app2

Migrate. python manage.py migrate

Load initial data from fixtures if any. python manage.py loaddata dummy_inital_data

Try to run the server just to check if everything is fine. python manage.py runserver  


-- Article will be updated soon for next steps --

ec2 aws   0   1095

Related Articles:
How to setup Django app on EC2 instance (AWS)
Step by step guide on hosting Django application on AWS ec2 instance. How to host the Django app on AWS ec2 instance from scratch....

0 thoughts on 'How To Setup Django App On Ec2 Instance (Aws) - Part 2'
Leave a comment:


*All Fields are mandatory. **Email Id will not be published publicly.


SUBSCRIBE
Please subscribe to get the latest articles in your mailbox.


Recent Posts:






© pythoncircle.com 2018-2019
Contact Us: code108labs [at] gmail.com
Address: 3747 Smithfield Avenue, Houston, Texas