Overview
The Django application, Code Shelter, aims to eliminate certain annoyances within the Django framework by providing various features and functionalities to simplify development.
Features
- render_to decorator: Reduces typing in Django views.
- signals decorator: Allows using signals as decorators.
- ajax_request decorator: Returns JsonResponse with dictionary as content.
- autostrip decorator: Strips form text fields before validation.
- get_object_or_None function: Retrieves an object or returns None if not found.
- AutoOneToOne field: Creates a related object on the first call if it doesn't exist yet.
- JSONField: Stores a Python object as JSON and retrieves it as a Python object.
- get_config function: Gets settings from django.conf if they exist, returning a default value otherwise.
- StaticServer middleware: Serves static files in debug mode.