evidenttutorials.com
Home CodeIgniter Django HTML JavaScript jQuery PHP Python Server SQL
Page 1 of 2. Next Last
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... 
June 08, 2025

How to create a new Django app?

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

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

Latest Posts

You can find latest posts below:

Explain MVC architecture in CodeIgniter What are controllers in CodeIgniter What are views in CodeIgniter What are models in CodeIgniter How to load model class in CodeIgniter?
About Us Privacy Policy Disclaimer