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

What does collectstatic command do in Django?

Through collectstatic command do in Django we can collect static files such as js, css and image files and we can copy it into a specified folder, which is configured in settings.py file. We can run python manage.py collectstatic command to collect static files.

Read more... 
June 08, 2025

What does clearsessions command do in Django?

We can clear database expired session in Django by using clearsessions command. This command is very helpful to cleanup expired session records present session table. We do not need to remember table name, by running single command table cleanup happened automatically.

Read more... 
June 08, 2025

How to make database schema related changes in Django?

In Django there is two commands which help to do database schema related changes first is makemigrations which create database migrations and second is migrate which applies the database migrations and make database related changes.

Read more... 
June 08, 2025

How to create new user in Django command line utility?

By using Django's command line utility, we can create new user, which we can use to get login in Django's admin panel. Django admin panel is a very important tool through which user can manage their database. It automatically create user interface based on the details mentioned in model classes. We can also change password of a user with using Django's command line utility.

Read more... 
June 08, 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 08, 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... 
Page 1 of 2. Next Last

Latest Posts

You can find latest posts below:

Set and Get variables in Django session How to run a Django project? How to create a new Django project? How to create a new Django app? What does collectstatic command do in Django?
About Us Privacy Policy Disclaimer