In this post, I cover a couple of ways to flatten lists of lists or lists of mixed data in standard Python and 3rd party libraries such as Django, Pandas and Matplotlib.
Category: Django
How to use Postman to authenticate to Django Rest Framework
Authenticating with Django REST APIs using HTTP Client
How to use Django with multiple databases
Have you ever wondered if it is possible to connect Django to more than one database at a time? Read this post to find out how.
Dealing with the Type Error: ObjectId(”) is not JSON serializable error when working with MongoDB
Learn how to serialize MongoDB ObjectId data types in Python.
How to add CORS Headers to Django responses
How to add CORS headers to a Django Application
Django Templates
A brief introduction into the Django Template Language.
User authentication in Django
The Django auth app makes authenticating users easy to do. Learn how to enable log in and logout functionality to a Django site.
Custom template tags in Django
Learn how you can extend the Django template engine by defining custom template tags using Python, and then make them available to your templates using the {% load %} tag.