evidenttutorials.com
Home HTML JavaScript jQuery PHP Python Server SQL
Page 1 of 2. Next Last
May 11, 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... 
May 11, 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... 
May 09, 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... 
May 03, 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... 
May 02, 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... 
December 28, 2024

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... 
September 02, 2024

Python String Compare

Comparison of two strings in Python is very easy task. Like integer values you can also compare string objects with the help of equal to operator (==) inside of if conditional statement.

Read more... 
September 02, 2024

Python String Concatenation

In Python you can do string concatenation through + operator. + operator is a concatenation operator for string values and it also an addition operator for numeric values.

Read more... 
September 02, 2024

Python String Length

Length is a property of a string. Through len function you can get the length of a string that means you can count the number of characters, of a particular string. If you want to count total characters of a string then you will have to pass your string as a parameter to len function which is built in Python function.

Read more... 
August 17, 2024

Python string replacement with replace() function

You can replace a character, a word or even a string from a string through replace function in Python. replace function required two string parameters to make replacement on the string first parameter old string which you want to replace and second parameter is new string with you want to replace old string.

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

Latest Posts

You can find latest posts below:

What does clearsessions command do in Django? What does collectstatic command do in Django? How to create a new Django app? How to create a new Django project? How to run a Django project?
About Us Privacy Policy Disclaimer