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.1.tar.gz
(30.2 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.1.tar.gz.
File metadata
- Download URL: django_rad-0.1.1.tar.gz
- Upload date:
- Size: 30.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ea97e02dcec34c1e5c0a0cf07c1f34ac7292cd4990e94652a6f6f596164a351
|
|
| MD5 |
3e04a7337e9ca81d56cad6c23b2a078e
|
|
| BLAKE2b-256 |
6dc73083371b6ed4bbfda7a3a529a3fcf6199a4f8944c43b6edf28502dfb0fb0
|
File details
Details for the file django_rad-0.1.1-py3-none-any.whl.
File metadata
- Download URL: django_rad-0.1.1-py3-none-any.whl
- Upload date:
- Size: 35.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b6586fdf67f7e34033aa5db85379c0d2c7d70985ea1d393d35dc26dd54f7cab
|
|
| MD5 |
fe4e4fd0d5bbdf60fef1453a7b175867
|
|
| BLAKE2b-256 |
0e6dfd09427ae2636731e87519463ce4aae945f79cc04da0f196e3aab0d10347
|