title: Using Codemirror in Django
body: <p>I'm trying to add CodeMirror editor to my Django application.<br>
  I'm using following code in script:</p>
  
  <pre><code>var myCodeMirror = new CodeMirror(document.body, {
        lineNumbers: true,
        value: "print 'Hello!'",
        mode:  "python",
        theme : 'mbo'
  });
  myCodeMirror.focus();
  document.getElementById('frame').innerHTML=myCodeMirror.getValue(); 
  </code></pre>
  
  <p>But I don't get editor on the page as a result, only value <code>'Hello'</code>.</p>
  
  <p>Please help.</p>