Skip to content

Repository files navigation

djcrud

Faster Django development by getting more out of less.

djcrud is a thin MVC layer on top of Django. Declare routers 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

About

Faster and Safer Django development with MVC, introspection, sane defaults and secure by default views

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages