Skip to main content

Controller Based Hybrid of DRF and Django Ninja

Project description

Here’s your content converted into clean Markdown format:

# django-rad

**django-rad** is a Django app that helps in the creation of APIs, which is somewhat a mix of **Django Ninja** and **Django Rest Framework**.

## Quick Start

1. **Add `rad` to your `INSTALLED_APPS` setting**:

```python
INSTALLED_APPS = [
    ...,
    "rad",
]
  1. Include the router in your urls.py so that all controllers are registered:
from django_rad.routers import route

path("api/", route.api.urls())
  1. Create a controllers.py or write the controller in views.py:
from django_rad.controllers import ApiController

class IndexController(ApiController):
    @route.api.get("/")
    def index(self, request):
        return self.response({"message": "hello world"})

If you want, I can also make it **even more structured and beginner-friendly** with headings, code blocks, and notes. Do you want me to do that?

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_rad-0.1.0.tar.gz (28.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_rad-0.1.0-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

Details for the file django_rad-0.1.0.tar.gz.

File metadata

  • Download URL: django_rad-0.1.0.tar.gz
  • Upload date:
  • Size: 28.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.2

File hashes

Hashes for django_rad-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9add07a7760bd0d3523e3c9f8828efe630e669b6aab241dd60502ed28b4c4ed6
MD5 ea35b96f03ebbe1ee19026d83b5e1836
BLAKE2b-256 b21958b1beb0c39f543e4ec2d3814e57948cce119d7d1ba93eeb5ded54e1ae74

See more details on using hashes here.

File details

Details for the file django_rad-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_rad-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de765548c916865fd8d1dbaf67d6e859f370860cef25b7c0ade084448eb834db
MD5 11e8e7f9536472ffd0cf28e44f84ad8b
BLAKE2b-256 10b11c108ac8d7ac2ff7ecee375852f6e72378cf10e70177c8b662b3e8d7460f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page