Course Content

Course Content


Django is a Python web framework that makes it easy for developers to build dynamic web applications. In this tutorial , we will be looking into how the data is processed. In this tutorial , we will be looking into how Django processes the data. The first step in processing the data is the creation of a model. Django comes with a built-in model called People which will have many attributes like name, age, height and job title. Next, you need to create one or more views that define how your focus area should look like - say if you want to display all people with job title "Advertising" then your view would look like from django.db import models from django.shortcuts import render_to_response def advertiser_list(request): """

Django is a high-level Python Web framework that allows us to build websites and web applications. It uses SQL database management system to store data. This article discusses what are the different tools required to fetch data from database in Django. Database Tools Django provides us with various tools for database management. Some of these are: SQLite3: This is the default database backend for Django. It uses sqlite3 command line interface (client) to create, delete, update, and retrieve data in memory using SQL statements. The advantage of using this type of databases is that it's lightweight and easy to manipulate without any changes in code or setup file at all. MySQL: MySQL is an open source Relational Database Management System (RDBMS) written in C language.

This tutorial will show you the steps to connecting to a database in Django. Requirements: 1. Python 3.x installed on your machine. 2. The Django framework installed on your machine with the latest release of the 1.11 version or any other version that is compatible with Python 3.x installed on your machine. 3. A MySQL database configured and ready to be connected to in the system's MySQL configuration file, which is usually located at /etc/mysql/my.cnf or /var/lib/mysql/my-cnf . If you are unsure of how it looks, open up a terminal window and try running sudo mysql -u root -p create database mydb ; use mydb ; show databases . Then locate the INFORMATION_SCH in the database.

Recommended Courses

Share With Friend

Have a friend to whom you would want to share this course?

Download LearnVern App

App Preview Image
App QR Code Image
Code Scan or Download the app
Google Play Store
App Store
297K+ Downloads
App Download Section Circle 1
4.5 Rating
App Download Section Circle 2
10K+ Reviews
App Download Section Circle 3
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere