-
DJANGO
The much-awaited pull request for an async-compatible interface to Queryset just got merged into the main branch of Django.Pull Request - https://github.com/django/django/pull/14843
The Django core team has been progressively adding async suppor…
-
DJANGO
Django admin is undoubtedly one of the most useful apps of Django. Over the years there has been very little change in the admin app as far as the UX is concerned and it's not a bad thing at all. Django admin was designed to provide a simple and minimali…
-
DJANGO
With great pleasure, I will like to announce that djangocentral is now powered by Django, and I couldn't be more satisfied with the results. I was intending to do this switch for a very long time, but I was always busy with other things.But before s…
-
PROGRAMS
Problem Definition
Find the missing numbers in a given list or array using Python.
For example in the arr = [1,2,4,5] the integer '3' is the missing number.
There are multiple ways to solve this problem using Python. In this article, we will cover the mo…
-
PYTHON
NumPy is one of the most popular packages in the Python ecosystem. NumPy adds support to large multidimensional arrays and matrices with great efficiency.
Numpy arrays are a lot faster than traditional python lists because they are stored in continuous m…
-
DJANGO
In this tutorial, we will learn how to create custom model validators using Django.
Understanding The Problem
Django models come with their own built-in validations, that we put while creating models. However, often we require further validations on some…
-
DJANGO
In this tutorial, we will learn how to show custom validation exceptions on Django admin.
Understanding The Problem
Django admin site will raise exceptions when we try to save objects with non-acceptable values. Often we need to create our custom validat…
-
DJANGO
In this tutorial, we will learn how to make optional model fields required in Django admin to make sure that data for these fields are populated on the creation of new records from the Django admin interface.
Understanding the Problem
Suppose you are wo…
-
PYTHON
Generators are iterators, a kind of iterable you can only iterate over once.
So what are iterators anyway?
An iterator is an object that can be iterated (looped) upon. It is used to abstract a container of data to make it behave like an iterable object. …
-
PROGRAMS
In this tutorial, we will learn how to send emails with CSV attachments using Python.
Pre-Requirements
I am assuming you already have an SMTP server setup if not you can use the Gmail SMTP or Maligun or anything similar to that.
Sending Emails With CSV A…