Skip to main content

Use codemirror2 widget directly in Django models, forms and admin.

Project description

Django CodeField

Django model field for Code using CodeMirror2.

Community-Project

PyPI - Supported versions PyPI - Package version PyPI - Downloads PyPI - License Codacy Grade Badge Codacy Coverage Badge Gitlab Pipeline Status

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

django_sb_codefield-0.5.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

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

django_sb_codefield-0.5.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

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

Hashes for django_sb_codefield-0.5.0.tar.gz
Algorithm Hash digest
SHA256 03826c90109ddeb9481d12852bb2ac4c00f174841421ced24f24d9bc8fd55698
MD5 0542a2207732d1fd94e0fc1af53dd4e8
BLAKE2b-256 e5393db522c05274cd21547b89c5cba5beef4a379595d7589efc4179e7a19e44

See more details on using hashes here.

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

Hashes for django_sb_codefield-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3fbcd9efa15189bc4db1b57c420091652ed51ccf3ff4f365deb4a499f1cba846
MD5 551e2fdfb8408818ae5e21b72fbaae4a
BLAKE2b-256 f0545a8c60237cf38d593831db1fc6fe2930638df3556dc04fd798b706115545

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