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",
]
- Include the router in your
urls.pyso that all controllers are registered:
from django_rad.routers import route
path("api/", route.api.urls())
- Create a
controllers.pyor write the controller inviews.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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9add07a7760bd0d3523e3c9f8828efe630e669b6aab241dd60502ed28b4c4ed6
|
|
| MD5 |
ea35b96f03ebbe1ee19026d83b5e1836
|
|
| BLAKE2b-256 |
b21958b1beb0c39f543e4ec2d3814e57948cce119d7d1ba93eeb5ded54e1ae74
|
File details
Details for the file django_rad-0.1.0-py3-none-any.whl.
File metadata
- Download URL: django_rad-0.1.0-py3-none-any.whl
- Upload date:
- Size: 34.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de765548c916865fd8d1dbaf67d6e859f370860cef25b7c0ade084448eb834db
|
|
| MD5 |
11e8e7f9536472ffd0cf28e44f84ad8b
|
|
| BLAKE2b-256 |
10b11c108ac8d7ac2ff7ecee375852f6e72378cf10e70177c8b662b3e8d7460f
|