R&D
Django Third-Party Component List
· β˜• 2 min read
Awesome-Django A collection of Django apps, projects, and resources. Django-Packages A large number of Django third-party components. Django-Mptt Store hierarchical data structures in the database. Django-Rest-Framework Automatically generate RESTful APIs. Django-Rest-Framework-Jwt Provides token authentication for Django-Rest-Framework. Django-Tastypie Automatically generate RESTful APIs. Django-Cors-Headers Solves the problem of cross-origin access. Django-Ckeditor Rich text support for Django.

Django Template Inheritance
· β˜• 2 min read
1. The Scenario In a project, elements such as the header and footer are often reused. To avoid rewriting these elements on every page, and so that a change does not require editing each page individually, the common parts need to be extracted β€” that is Django template inheritance. 2.

Django Snippets
· β˜• 3 min read
1. Auto-Register All Models in Admin admin.py 1 2 3 4 5 6 7 8 9 10 # -*- coding: utf-8 -*- import inspect from django.contrib import admin from . import models for name, obj in inspect.getmembers(models): try: if inspect.isclass(obj): admin.site.register(getattr(models, name)) except Exception as e: pass 2. Get All View Names Get all view names of the project

Getting Started with Django REST Framework
· β˜• 2 min read
In the SaaS development I work on, there is a fairly high demand for development efficiency. From project initiation, prototype design and evaluation, requirements confirmation, frontend design, and backend development through to final acceptance, we complete one iteration in just a few weeks. Guided by agile development, we began rolling