pip install djangocodemirror
In your settings file add djangocodemirror to your installed apps:
python
- INSTALLED_APPS = (
... 'djangocodemirror', ...
)
Import default settings:
python
from djangocodemirror.settings import *
- Optionally install django-assets to use asset bundles;
Finally you may want to change available CodeMirror configurations from settings.CODEMIRROR_SETTINGS
:
- If you need to add your own new configuration see
configurations-intro
; - If you just need to add/change some parameters from configurations see
helper-intro
.