How to connect Django application to PostgreSQL Databases

Procedure 1. Access your Cpanel and create a PostgreSQL Database and add a database user. See the guides on: https://truehost.com/support/knowledge-base/how-to-create-a-postgresql-database-in-the-cpanel/ and https://truehost.com/support/knowledge-base/how-to-create-a-postgresql-user-adding-them-to-the-database/ 2.Install the required dependency/add <psycopg2-binary> to your requirements.txt pip install psycopg2-binary 3. Go to your settings.py :: This is found in the folder that was generated on running […]

How to connect Django application to MySQL Database

After completing your django web application development on local host, it’s time to take it to production. You may need to switch to a more stable database as SQLite database is not recommended for production. For this to happen, you will need to adjust your code to have your web […]

How to unhide Let’s encrypt on Cpanel

SSL certificate is a crucial entity on a website. Your website will have a chance of ranking higher, given that the SSL certificate is installed. There are 2 main types of SSL certificates: Paid version for maximum website protection and the free version for basic website protection. To install the […]

How to deploy Django web application on shared hosting (Cpanel)

Requirements: Compressed website files (tested and working on localhost). Zip formatrecommended. requirements.txt (a list of the Django packages for your application) Procedure: Login to your Cpanel; Under Software, select ‘Setup python App’ 2. Click on ‘Create Application’ 3. In the create Application Page : Python Version: Select the python version […]