Use codemirror2 widget directly in Django models, forms and admin.
Project description
Django CodeField
Django model field for Code using CodeMirror2.
django-sb-codefield provide a django model field for Code using CodeMirror2.
✨ Features
- django model field for Code using CodeMirror2
📋 Requirements
- Python 3.11 or higher
- Django 4.2 or higher
- django-codemirror2 lower than 1.0.0
📦 Installation
Using pip
pip install django-sb-codefield
Using uv
uv add django-sb-codefield
🚀 Usage
Add codemirror2 and django_sb_codefield to your INSTALLED_APPS settings
INSTALLED_APPS = [
# ...
"codemirror2",
"django_sb_codefield",
]
For more detailed instructions, see our Step-by-Step Tutorial.
🛠️ Development
Check out our Contribution Guide for details on setting up your development environment, running tests, and submitting pull requests.
The project uses uv for dependency management, ruff for linting, and tox
for multi-environment testing.
📜 Changelog
See the CHANGELOG.md for a history of changes.
👥 Contributors
See our list of contributors.
📄 License
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_sb_codefield-0.5.0.tar.gz.
File metadata
- Download URL: django_sb_codefield-0.5.0.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03826c90109ddeb9481d12852bb2ac4c00f174841421ced24f24d9bc8fd55698
|
|
| MD5 |
0542a2207732d1fd94e0fc1af53dd4e8
|
|
| BLAKE2b-256 |
e5393db522c05274cd21547b89c5cba5beef4a379595d7589efc4179e7a19e44
|
File details
Details for the file django_sb_codefield-0.5.0-py3-none-any.whl.
File metadata
- Download URL: django_sb_codefield-0.5.0-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fbcd9efa15189bc4db1b57c420091652ed51ccf3ff4f365deb4a499f1cba846
|
|
| MD5 |
551e2fdfb8408818ae5e21b72fbaae4a
|
|
| BLAKE2b-256 |
f0545a8c60237cf38d593831db1fc6fe2930638df3556dc04fd798b706115545
|