how-to hosting ec2 aws   0   594
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 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 makemigrations app1 app2

Migrate. python migrate

Load initial data from fixtures if any. python loaddata dummy_inital_data

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

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

how-to hosting ec2 aws   0   594

Related Articles:
Python Script 3: Validate, format and Beautify JSON string Using Python
Validating json using python code, format and beautify json file using python, validate json file using python, how to validate, format and beautify json...
Encryption-Decryption in Python Django
How to encrypt and decrypt the content in DJango. Encrypting the critical information in Django App. Encrypting username, email and password in Django...
Adding Robots.txt file to Django Application
Adding robots.txt file in your Django application. Easiest way to add robots.txt file. Django application robots.txt file. Why should you add robots.txt file in your Django Application....
How to upgrade to paid account on PythonAnyWhere
Which is the best server for hosting Django Apps. Best hosting provider for Django Apps. Cheapest Django Hosting. PythonAnyWhere Reviews. Django Hosting....

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.

Please subscribe to get the latest articles in your mailbox.

Recent Posts:

© 2018-2019