Skip to content

Tag Archives: Django-models

Built-in Field Validations in Django models are the default validations that come predefined to all Django fields. Every field comes in with built-in validations from… Read More
Built-in Field Validations in Django models are the default validations that come predefined to all Django fields. Every field comes in with built-in validations from… Read More
Django Field Choices. According to documentation Field Choices are a sequence consisting itself of iterables of exactly two items (e.g. [(A, B), (A, B) …])… Read More
Built-in Field Validations in Django models are the validations that come predefined to all Django fields. Every field comes in with built-in validations from Django… Read More
Built-in Field Validations in Django models are the default validations that come predefined to all Django fields. Every field comes in with built-in validations from… Read More
How to Change Display Name of an Object in Django admin interface? Whenever an instance of model is created in Django, it displays the object… Read More
Rendering model in admin refers to adding the model to the admin interface so that data can be manipulated easily using admin interface. Django’s ORM… Read More
URLField is a CharField, for a URL. It is generally used for storing webpage links or particularly called as URLs. It is validated by URLValidator.… Read More
UUIDField is a special field to store universally unique identifiers. It uses Python’s UUID class. UUID, Universal Unique Identifier, is a python library that helps… Read More
SmallIntegerField is a integer number represented in Python by a int instance. This field is like a IntegerField and supports values from -32768 to 32767.… Read More
TimeField is a time field which stores time, represented in Python by a datetime.time instance. As the name suggests, this field is used to store… Read More
TextField is a large text field for large-sized text. TextField is generally used for storing paragraphs and all other text data. The default form widget… Read More
A Slug is basically a short label for something, containing only letters, numbers, underscores or hyphens. They’re generally used in URLs. For example, in a… Read More
PositiveIntegerField is a integer number represented in Python by a int instance. This field is like a IntegerField but must be either positive or zero… Read More
PositiveSmallIntegerField is a integer number represented in Python by a int instance. This field is like a PositiveIntegerField. The default form widget for this field… Read More