-
DJANGO
A manager is an interface through which database query operations are provided to Django models. At least one Manager exists for every model in a Django application, objects is the default manager of every model that retrieves all objects in the database…
-
DJANGO
Django ships with built-in syndication feed generating framework, which is used to generate dynamic Atom and RSS feeds.RSS is an abbreviation for Really Simple Syndication, it's a way to have information delivered to you instead of you having to go find …
-
DJANGO
Django comes with baked-in functionality for generating sitemaps dynamically using the sitemap framework.A sitemap is an XML file that informs search engines such as Google, the pages of your website, their relevance, and how frequently they are updated.…
-
DJANGO
In Django Media files are the files uploaded by users on the system. However, like static files media files shouldn't be trusted. There are always security concerns when dealing with user-uploaded content. Notably, it’s important to validate all uploaded…
-
DJANGO
Managing static assets such as CSS, Javascript, fonts are core components of any modern web application Django provides us a large degree of freedom and flexibility on managing and serving static assets in different environments.In this article, we will …
-
DJANGO
A WYSIWYG (pronounced "wiz-ee-wig") editor or program is one that allows a developer to see what the result will look like while the interface or document is being created. WYSIWYG is an acronym for "what you see is what you get".There are many WYSIWYG e…
-
PROGRAMS
The Least Common Multiple (LCM) is the smallest positive integer that is a multiple of two or more numbers.In this article, we will be discussing how to write a Python program to find the LCM of two numbers.Method 1
One way to find the LCM of two number…
-
PROGRAMS
The factorial of a number is the product of all the integers from 1 to that number. Mathematically, the formula for the factorial is as follows. If n is an integer greater than or equal to 1, then factorial of n is, (n!) = 1*2*3*4....*nAlso, the factoria…
-
PROGRAMS
Problem DefinitionCreate a Python Program to generate the multiplication table of a number.Programnum = int(input("Enter the Number :"))
for i in range(1,11):
print("{} x {} = {}".format(num,i,num*i))OutputEnter the Number :33 x 1 = 33 x 2 = 63 x 3 =…
-
PROGRAMS
A leap year is a year, occurring once every four years, which has 366 days including 29 February as an intercalary day. A leap year is exactly divisible by 4 except for century years (years ending with 00). The century year is a leap year only if it is p…