evidenttutorials.com
Home CodeIgniter Django Go HTML JavaScript jQuery PHP Python Server SQL
Page 1 of 2. Next Last
July 26, 2025

How to write raw sql queries in Django?

There are situations where SQL queries become too complex to be effectively written using Django's ORM—especially when dealing with advanced joins, subqueries, window functions, or database-specific features. In such cases, it's more practical and efficient to write the SQL query manually and execute it directly within Django.

Read more... 
June 15, 2025

How to iterate a list in Django template

We can iterate a list in Django templates by using {% for %} tag. This allow us to display list items on web pages. Django handles the iteration and allows us to access each individual item within the loop, making it easy to create dynamic and data-driven web pages.

Read more... 
June 15, 2025

Explain MVT architecture in Django

MVT stands for model, view and template. Here M represent model part and in this part we keep all the database related code and interactions. V represent view part, It contains complete project's business logic. views also works as a mediator between models and templates. T represent template part, it contains views. These are HTML files which used to create user interfaces.

Read more... 
June 15, 2025

What are models in Django

Models are very important in Django. We perform database related operation by using model classes. In Django we use ORM (object relational mapper) for performing database operation, one model class represent to one database table and each property of model class represent to table column.

Read more... 
June 15, 2025

What are templates in Django

Templates are very important in Django. These are HTML files which used to create user interfaces. We can pass variables and objects to Django template to load dynamic content. Through views we render templates.

Read more... 
June 15, 2025

What are views in Django

Views are very important in Django project. It contains complete project's business logic. Views also works as a mediator between models (database classes) and templates (HTML UIs). Views are bind with URLs, so whenever a user hits a URL based on URL and views mapping, appropriate view function and classed gets called.

Read more... 
June 15, 2025

if condition in Django template

We can use {% if %} tag to add condition content load in Django template. This can control the flow of content rendering and display content based on the value of a variable passed in template. It also help the front end developers to create dynamic web pages.

Read more... 
June 08, 2025

Set and Get variables in Django session

Django sessions are very import to maintain variables across multiple web pages or multiple http requests. With session variables we can easily identify users are coming with same session even if they are accessing different web pages of a website. Django session middleware makes developer's life easy and provide easy way to maintain session variables.

Read more... 
June 08, 2025

How to run a Django project?

We can run a Django project by using 'python manage.py runserver'. Port part is optional if we need to run our Django project on a specific port then we can specify a specify port number after runserver word. And if dont specify port then by default it runs on 8000 port.

Read more... 
June 08, 2025

How to create a new Django project?

We can create a Django project by using Django's startproject command. It is one of the most important command to work in Django. We need to use command line utility django-admin following startproject command. Syntax for creating project is mentioned below:

Read more... 
Page 1 of 2. Next Last

Latest Posts

You can find latest posts below:

Capitalize first character of each word in a string in JavaScript Capitalize first character of each word in a string in Go Capitalize first character of each word in a string in Python Capitalize first character of a string in JavaScript Capitalize first character of a string in Go
About Us Privacy Policy Disclaimer