djmvc
Faster Django development by getting more out of less.
djmvc 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 djmvc
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/djmvc.py
import djmvc
from .models import YourModel
class YourModelController(djmvc.ModelController):
model = YourModel
djmvc.site.routes.append(YourModelController)
# urls.py
import djmvc
urlpatterns = djmvc.site.build().urlpatterns
Add myapp to INSTALLED_APPS. build() autodiscovers each app's djmvc.py
(like Django admin) — the import runs routes.append() before the route
registry is built.
Documentation
- Philosophy
- Install
- Demo — Try the example project
- Tutorial
- Reference
Contributing
See the contributing guide
for development setup, running tests, updating documentation screenshots, and
JavaScript conventions. Source: docs/contributing.rst.
License
MIT
Metadata
Release files for djmvc 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| djmvc-0.1.0.tar.gz | 687.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| djmvc-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.3 MB
Release files / djmvc-0.1.0.tar.gz
| Download URL | djmvc-0.1.0.tar.gz |
|---|---|
| Size | 687.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8469064643e678ccc15b462750cd957af00679215d017c77e6f7e203e5e6f720
|
|
BLAKE2b-256 checksum How to use checksums |
50f33ba207646a2be74df7cb85c3c5780570112ecba5be1e1b8574f886598b86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / djmvc-0.1.0-py3-none-any.whl
| Download URL | djmvc-0.1.0-py3-none-any.whl |
|---|---|
| Size | 585.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
58ca9ac465aea3965e2d7efb6948fd6a14e1750fedae81b6b82d6f372a5f02a8
|
|
BLAKE2b-256 checksum How to use checksums |
048e35585c9fd64f68b0d539451ceaf64791f12e79f87bcaef6f3e9aabfcb48e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|