Skip to content

Latest commit

 

History

History
36 lines (21 loc) · 805 Bytes

install.rst

File metadata and controls

36 lines (21 loc) · 805 Bytes

Install

pip install djangocodemirror
  1. In your settings file add djangocodemirror to your installed apps:

    python

    INSTALLED_APPS = (

    ... 'djangocodemirror', ...

    )

  2. Import default settings:

    python

    from djangocodemirror.settings import *

  3. 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.