Skip to main content

Django CRUD utilities

Project description

djcrud

Faster Django development by getting more out of less.

djcrud is a thin MVC layer on top of Django. Declare controllers and views in code, get secure CRUD and routing by default, and expose the view object directly to templates.

Read the philosophy for the full rationale.

Install

pip install --pre djcrud

Note: The --pre flag is required for pre-release dependency versions.

See installation for setup, or try the demo to explore the example project.

Quick start

# myapp/djcrud.py
import djcrud

from .models import YourModel


class YourModelRouter(djcrud.ModelRouter):
    model = YourModel


djcrud.site.routes.append(YourModelRouter)
# urls.py
import djcrud

urlpatterns = djcrud.site.build().urlpatterns

Add myapp to INSTALLED_APPS. build() autodiscovers each app's djcrud.py (like Django admin) — the import runs routes.append() before the route registry is built.

Documentation

Contributing

See the contributing guide for development setup, running tests, updating documentation screenshots, and JavaScript conventions. Source: docs/contributing.rst.

License

MIT

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

djcrud-0.2.0.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

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

djcrud-0.2.0-py3-none-any.whl (598.5 kB view details)

Uploaded Python 3

File details

Details for the file djcrud-0.2.0.tar.gz.

File metadata

  • Download URL: djcrud-0.2.0.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for djcrud-0.2.0.tar.gz
Algorithm Hash digest
SHA256 30ddb983858ace7b9ecbfc63c0f8cc762e0ca8447c6fdc7f39e719dbb606ae97
MD5 fb04259852510d14bbc1c608650ce895
BLAKE2b-256 d48f3c460b250ef79b5f19973b31e19c8ff07099c5bb31ba3e9bd07b2639b0bf

See more details on using hashes here.

File details

Details for the file djcrud-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: djcrud-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 598.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for djcrud-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 896129a7379e271ab465c34d57a994c857659230455a9b27f3a189e176fcd699
MD5 bc033c9ecd3d0a11da7d981a4c443bd8
BLAKE2b-256 c35e49af67628ed4097fe66270e6f1d3a3f4a0b2930e15222b24229ebb733379

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