In this video, I'll show you how you can connect to MySQL database from django app. Django is a very popular python web framework for web development. By default, django uses sqlite database, so to connect django app to mysql database, you need to install mysqlclient for python.
☕Buy me a coffee: [ Ссылка ]
🌐Connect with me:
- TikTok: tiktok.com/@thecodecity
- Twitter: [ Ссылка ]
- Instagram: [ Ссылка ]
- Website: [ Ссылка ]
Steps to Connect to MySQL database from Django:
1. Install mysqlclient
2. Change settings.py and include database credentials
By the end of this video, we will have installed mysql client for python and configured settings.py to connect to mysql database from django. If you have any problems let me know in the comments below.
#python #django #djangomysql #djangoproject
Ещё видео!