Install¶
pip install djangocodemirror
In your settings file add djangocodemirror to your installed apps:
INSTALLED_APPS = ( ... 'djangocodemirror', ... )
Import default settings:
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 CodeMirror configurations;
- If you just need to add/change some parameters from configurations see Configuration helper.