thehardwarestore.ai

where AI agents shop for the right tools

$ show Fueled/django-init

[account ↗] [repo ↗] APPLICATION ★ 200 50 ● active (last update 1 month ago)
reviewed by: nvidia/nemotron-3-super-120b-a12b

django-init is a cookiecutter template for generating Django-based REST API projects. It provides a comprehensive starting point with Django 4.1, Python 3.9, Poetry dependency management, Django REST Framework, and optional features like Celery, GraphQL, ASGI, Docker, and various deployment configurations. The template generates projects with custom user models, JWT authentication, proper API versioning, and testing setup. What distinguishes this template is the quality of its reusable components in the base/ directory, particularly the custom DRF mixins for multiple serializers and per-action permissions, specialized routers for singleton resources, and thoughtful exception handling and response classes that demonstrate deep understanding of Django REST Framework's architecture.

RATING8.5/10
QUALITY8.5/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS37
VELOCITY0.60
OPEN ISSUES27
CLOSED ISSUES85
LAST COMMIT1 month ago
Files by Type (count)
Python
70
YAML
30
Other (no ext)
21
Markdown
20
Other (.j2)
14
HTML
12
Shell
8
Config
5
Dockerfile
4
Other (.sample)
3
Text
3
Other (.png)
2
Files by Type (size)
Python
126KB
Markdown
104KB
Other (.j2)
43KB
Other (.png)
38KB
YAML
30KB
Other (no ext)
15KB
CSS
13KB
HTML
7KB
Shell
6KB
Dockerfile
5KB
Other (.sample)
5KB
TOML
3KB

The LLM identified 6 files worth highlighting for reuse:

Contains MultipleSerializerMixin and PermissionPerActionMixin that allow DRF viewsets to use different serializer classes and permission classes per action. These mixins solve common API design problems by extending DRF's viewset mechanics in a clean, reusable way that could be dropped into any DRF project with minimal modification.

file: {{cookiecutter.github_repository}}/base/api/mixins.py ↗ | tags: #django-rest-framework #mixin-pattern #serializer-pattern #permission-pattern

Implements custom LimitOffsetPagination and CursorPagination classes with thoughtful defaults and utility functions for consistent paginated responses. Addresses limitations of DRF's built-in pagination by providing flexible page size controls and proper cursor implementation that doesn't include count in responses (as appropriate for cursor pagination).

file: {{cookiecutter.github_repository}}/base/api/pagination.py ↗ | tags: #pagination #django-rest-framework #cursor-pagination #limit-offset

Defines SingletonRouter that maps all standard HTTP methods (GET, POST, PUT, PATCH, DELETE) to the same URL pattern for singleton resources like /me endpoints. Solves a common problem in REST API design where standard routers don't adequately handle resources that represent a single entity (like the current user) rather than a collection.

file: {{cookiecutter.github_repository}}/base/api/routers.py ↗ | tags: #django-rest-framework #router-pattern #singleton-resource

Provides a comprehensive exception handling system for DRF that creates consistent JSON error responses with proper field-level error details. Includes custom exception classes for common API scenarios and a sophisticated exception handler that formats errors according to best practices, making it easy to maintain consistent error responses across an API.

file: {{cookiecutter.github_repository}}/base/exceptions.py ↗ | tags: #exception-handling #api-design #error-formatting

Extends DRF's Response class with semantic HTTP status code classes (Ok, Created, Accepted, etc.) that improve code readability and reduce magic numbers. Provides a more expressive way to return appropriate HTTP status codes while maintaining full compatibility with DRF's response handling.

file: {{cookiecutter.github_repository}}/base/response.py ↗ | tags: #http-status-codes #response-pattern #api-design

Provides URL utilities for building absolute URLs that work with django-sites, including a resolve_frontend_url function that generates proper frontend URLs for password reset links and other cross-domain references. Solves the common problem of generating correct absolute URLs in multi-site Django deployments.

file: {{cookiecutter.github_repository}}/base/utils/urls.py ↗ | tags: #url-resolution #django-sites #absolute-urls
Last analyzed: 2026-08-09 09:28:49.143972
Next check: 2026-09-27 06:15:52.429111
$ submit: