Skip to main content

Django CRUD utilities

Project description

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

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

djmvc-0.1.0.tar.gz (687.8 kB view details)

Uploaded Source

Built Distribution

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

djmvc-0.1.0-py3-none-any.whl (585.4 kB view details)

Uploaded Python 3

File details

Details for the file djmvc-0.1.0.tar.gz.

File metadata

  • Download URL: djmvc-0.1.0.tar.gz
  • Upload date:
  • Size: 687.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for djmvc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8469064643e678ccc15b462750cd957af00679215d017c77e6f7e203e5e6f720
MD5 4e2c7bfc7b858f1f6c75985be7effe88
BLAKE2b-256 50f33ba207646a2be74df7cb85c3c5780570112ecba5be1e1b8574f886598b86

See more details on using hashes here.

File details

Details for the file djmvc-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: djmvc-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 585.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for djmvc-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 58ca9ac465aea3965e2d7efb6948fd6a14e1750fedae81b6b82d6f372a5f02a8
MD5 a8c4aa7383220fa1986063ed1cf27ebe
BLAKE2b-256 048e35585c9fd64f68b0d539451ceaf64791f12e79f87bcaef6f3e9aabfcb48e

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