Skip to main content

django-admin-deux-rest2

REST API plugin for django-admin-deux.

Automatically adds RESTful API endpoints to all registered ModelAdmins, providing full CRUD operations via JSON.

📚 Documentation

See the full documentation for:

  • Installation instructions
  • Configuration options
  • API endpoint reference
  • JavaScript examples with CSRF handling
  • Testing with BaseCRUDTestCase
  • Advanced usage

🚀 Quick Start

pip install django-admin-deux-rest2
# settings.py
from djadmin import djadmin_apps

INSTALLED_APPS = [
    # ... Django apps
    'myapp',
    *djadmin_apps(),  # Auto-discovers and registers djadmin-rest2
]
# myapp/djadmin.py
from djadmin import ModelAdmin, register
from djadmin.plugins.permissions import AllowAny

@register(Task)
class TaskAdmin(ModelAdmin):
    fields = ['title', 'description', 'status']
    permission_class = AllowAny()  # Public API

That's it! Your model now has REST API endpoints at:

  • GET/POST /djadmin/api/myapp_task/
  • GET/PUT/DELETE /djadmin/api/myapp_task/<pk>/

🎨 Demo Application

This repository includes a complete demo:

cd djadmin-rest2
python manage.py runserver
  • JavaScript Todo App: http://localhost:8000/
  • Admin Interface: http://localhost:8000/djadmin/todo/item/
  • REST API: http://localhost:8000/djadmin/api/todo_item/

📦 Development

See DEVELOPMENT.md for development setup and testing instructions.

🤝 Contributing

Contributions are welcome! This is part of the django-admin-deux plugin ecosystem.

📄 License

MIT License - see LICENSE for details.

Metadata

Release files for django-admin-deux-rest2 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-admin-deux-rest2 0.1.0
File Size Uploaded Provenance Actions
django_admin_deux_rest2-0.1.0.tar.gz 9.9 kB Without provenance Details for django_admin_deux_rest2-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-admin-deux-rest2 0.1.0
File Interpreter ABI Platform Actions
django_admin_deux_rest2-0.1.0-py3-none-any.whl Python 3 none any Details for django_admin_deux_rest2-0.1.0-py3-none-any.whl

Total release size: 17.6 kB

Release files / django_admin_deux_rest2-0.1.0.tar.gz

Download URL django_admin_deux_rest2-0.1.0.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
10093d450d34639e2092cba6d0bc13f781f8202ce65a1a31bbf09e5cbf836849
BLAKE2b-256 checksum
How to use checksums
98ba31d5da411d054c05950ead642a08f991ae9f8c3ccb773eb0272a590a8436
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / django_admin_deux_rest2-0.1.0-py3-none-any.whl

Download URL django_admin_deux_rest2-0.1.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d2c70dac15ded26acfef851bdac085c72eff49aa6d59fd39f8facbae2e1d6344
BLAKE2b-256 checksum
How to use checksums
3a8ef863dc1d30831b2ccfed3bf54ce5d58bcfae8471650083eb1a2679e6a996
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Security for django-admin-deux-rest2 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page