Category: Django

  • 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

  • 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

  • DJANGO

    Django + AJAX : How to use AJAX in Django Templates

    AJAX or Asynchronous JavaScript And XML is a set of web development techniques using web technologies on the client-side to create asynchronous web requests. In simpler words, AJAX allows web pages to be updated asynchronously by exchanging data with a w…
    Read more →

    8 min read

  • DJANGO

    How To Upload Images With Django

    One of the most common requirement in any modern web application is the ability to take images or pictures from the users as input and save them on the server however Letting users upload files can have big security implications. In this article, we will…
    Read more →

    3 min read

  • DJANGO

    Using Environment Variables In Django

    While working with web applications often we need to store sensitive data for authentication of different modules such as database credentials and API keys. These sensitive keys should not be hardcoded in the settings.py file instead they should be loade…
    Read more →

    2 min read

  • DJANGO

    Adding Custom Model Managers In 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…
    Read more →

    2 min read