Python hosting used in this video
https://techieblogging.com/chemicloud
Install Django on Cpanel shared hosting: https://youtu.be/nJN7XOV4JN8
In this video, we will see how to connect MySQL database to Django website on CPanel shared hosting. Replace the database settings.py below ================================ DATABASES = { ‘default’: { ‘ENGINE’: ‘mysql.connector.django’, ‘NAME’: ”, ‘USER’: ”, ‘PASSWORD’: ”, ‘HOST’: ‘localhost’, ‘Port’: ‘3306’ } } models.py table used in this video ============================ class demotable(models.Model): content1=models.CharField(in blank=True,max_length =100) content2=models.CharField(blank=True,max_length=100) def __str__(self): returns “content1” Library to use mysql connection with django web application: mysql-connector-python Follow us on social media platform == ============================================
https://www.facebook.com/techieblogging/
https://twitter.com/techieblogging
https://in.pinterest.com/atish9937/techieblogging/
Source Link
COMMENTS