Django model
Is a database manager used in the Django framework. Implemented via classes and inheritance in python.
Key features of Django models:
- Each model inherits from the Model class
- Each model field is the same field in the database
- A single way to access data in the database, regardless of what database is used
The following fields exist for a Django model:
- AutoField
- BigAutoField
- BigIntegerField
- BinaryField
- BooleanField
- CharField
- DateField
- DateTimeField
- DecimalField
- DurationField
- EmailField
- FileField
- FilePathField
- FloatField
- GeneratedField
- GenericIPAddressField
- ImageField
- IntegerField
- JSONField
- PositiveBigIntegerField
- PositiveIntegerField
- PositiveSmallIntegerField
- SlugField
- SmallAutoField
- SmallIntegerField
- TextField
- TimeField
- URLField
- UUIDField
- ForeignKey
- ManyToManyField
- OneToOneField
And in each field of the model the following arguments are available:
- null
- blank
- choices
- db_column
- db_comment
- db_default
- db_index
- db_tablespace
- default
- editable
- error_messages
- help_text
- primary_key
- unique
- unique_for_date
- unique_for_month
- unique_for_year
- verbose_name
- validators
0
Used in
In this article I will show how I implemented commenting on my website. Commenting, which is available to both anonymous and registered users.
Let me make a reservation right away that the authentication system that you and I will write is not based on the built-in Django application, django.contrib.auth. This will be a separate application with a separate model for it.
I will be busy developing a new project. His name is SearchResultParser. Its essence is to parse data from the search results of various search engines, such as google, youtube, yandex and others.
SEO recommendations from Google were used to improve the paginator and infinite scroll using replace and push states for the URL. A tag system was also developed for the site. A gallery was added.
This is an article that is going to introduce you to my new project/webtool, SearchResultParser. Also, from this article, you can navigate to any interesting article for you. See them in the end.