![]() ![]() In the Django Installation tutorial, we installed Xampp, it’s a great tool and is a prerequisite for MySQL.ĭon’t worry you won’t need to learn SQL for that, all the backend code will be done in python, that is the advantage of Django Model.įirstly, open the settings.py file of your web-application/ project and there find this part. In our case, we will be using MySQL and this tutorial will help you to integrate your project with MySQL. ![]() This file is generated automatically because Django has a default setting of the database set to the SQLite, which is although fine for testing and provides lots of features but if you want your website to be scalable, you need to change it to any other efficient database. It is a local file as Django is a server-side framework and it treats your computer as the host when you actually run the server in command line/terminal. The file is database file where all the data that you will be generating will be stored. To achieve that you would need some software, which can store that data efficiently and also some middleware which can let you communicate with the database.īy default, when we made our first app and started the server you must have seen a new file in your project directory, named as ‘db.sqlite3’. In today’s scenario, whenever we are developing a website, we will need a database, whether it’s a blog site or highly interactive ones like Instagram which is based on Django. All that data/ input is handled by a Database. Whenever we are creating a web project or any kind of project, we want some kind of input by our end-users or consumers. ![]() In the previous tutorial, we learned the concept of Django Models, now, we will discuss the process to connect database with Django project. Free Python course with 35 real-time projects Start Now!!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |