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.
pip install --pre djcrudNote: The --pre flag is required for pre-release dependency versions.
See installation for setup, or try the demo to explore the example project.
# 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().urlpatternsAdd 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.
- Philosophy
- Install
- Demo — Try the example project
- Tutorial
- Reference
See the contributing guide
for development setup, running tests, updating documentation screenshots, and
JavaScript conventions. Source: docs/contributing.rst.
MIT