All Articles

  • DJANGO

    Django 4.1 adds async-compatible interface to QuerySet

    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…
    Read more →

    3 min read

  • DJANGO

    Making Django Admin Jazzy With django-jazzmin

    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…
    Read more →

    4 min read

  • DJANGO

    We finally switched from WordPress to 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…
    Read more →

    11 min read

  • PROGRAMS

    Find Missing Number in a given Array Using Python

    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…
    Read more →

    2 min read

  • PYTHON

    Creating NumPy Arrays

    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…
    Read more →

    5 min read

  • DJANGO

    Creating Custom Model Validation In 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…
    Read more →

    3 min read

  • DJANGO

    Displaying Custom Validation Exception in Django Admin

    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…
    Read more →

    2 min read

  • DJANGO

    Django Admin Making Model Fields Required

    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…
    Read more →

    2 min read

  • PYTHON

    Python's Generator and Yield Explained

    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. …
    Read more →

    2 min read

  • PROGRAMS

    Sending Emails With CSV Attachment Using Python

    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…
    Read more →

    2 min read