title: Django / TinyMCE Editor not working
body: <p>I am using Django 1.8 with Python2.7. I have Installed TinyMCE using command "pip install django-tinymce" and included 'tinymcy' app in INSTALLED_APPS. </p>
  
  <pre><code>INSTALLED_APPS = (
      ...
      'tinymce',
      ...
  )
  </code></pre>
  
  <p><strong>Included in Project URL:</strong>
  <strong>urls.py</strong></p>
  
  <pre><code>url(r'^tinymce/', include('tinymce.urls')),
  </code></pre>
  
  <p><strong>TinyMCE Configuration in Settings.py File</strong></p>
  
  <pre><code>TINYMCE_JS_URL = os.path.join(STATIC_PATH,"django-tinymce-master/tinymce/media/tiny_mce/tiny_mce_src.js")
  
  
  TINYMCE_JS_ROOT = os.path.join(STATIC_PATH, "django-tinymce-master/tinymce")
  
  #D:\Dropbox\dp\p2d18\opinion\static\django-tinymce-master\tinymce
  
  TINYMCE_DEFAULT_CONFIG = {
  'plugins': "table,spellchecker,paste,searchreplace",
  'theme': "advanced",
  'cleanup_on_startup': True,
  'custom_undo_redo_levels': 10,
  }
  TINYMCE_SPELLCHECKER = True
  TINYMCE_COMPRESSOR = True
  </code></pre>
  
  <p><strong>models.py</strong></p>
  
  <pre><code>class Post(models.Model):
      ...
      body = models.TextField()
      ...
  </code></pre>
  
  <p><strong>forms.py</strong> </p>
  
  <pre><code>from django import forms
  from django.contrib.auth.models import User
  from blog.models import Post, Comment, Tag
  from tinymce.widgets import TinyMCE
  
  class PostForm(forms.ModelForm):
      ---
      body = forms.CharField(widget=TinyMCE(attrs={'cols': 50, 'rows': 30}))
      ---
  </code></pre>
  
  <p><strong>views.py</strong> </p>
  
  <pre><code>def add_post(request):
      if request.method == 'POST':
          form1Post = PostForm(request.POST)
          form2Tags = TagForm(request.POST)
  
          if form1Post.is_valid() and form2Tags.is_valid():
              post = form1Post.save()
              tag_title_from_form = form2Tags['tag_title'].value().strip().lower()
              tag_title_from_form = tag_title_from_form.rstrip(',')
              striped_tags = tag_title_from_form.split(',')
              for t in striped_tags:
                  received_tag = t.strip()
                  tag, created = Tag.objects.get_or_create(tag_title=received_tag)
                  post.tag_set.add(tag)
              return index(request)
          else:
              print (form1Post.errors)
              print (form2Tags.errors)
      else:
          form1Post = PostForm()
          form2Tags = TagForm()
  </code></pre>
  
  <p><strong>Added tinymce js link in my base.html</strong></p>
  
  <pre><code>&lt;script src="{% static 'django-tinymce-master/tinymce/media/tiny_mce/tiny_mce.js' %}"&gt;&lt;/script&gt;
  </code></pre>
  
  <p><strong>Added tinymce in my add_post.html</strong></p>
  
  <pre><code>{{ form1.media }}
  </code></pre>
  
  <p><strong>Generated HTML of Textarea</strong></p>
  
  <pre><code>&lt;textarea class="tinymce" cols="50" data-mce-conf="{&amp;quot;cleanup_on_startup&amp;quot;: true, &amp;quot;spellchecker_languages&amp;quot;: &amp;quot;Afrikaans=af,Arabic=ar,Asturian=as,Azerbaijani=az,Bulgarian=bg,Belarusian=be,Bengali=bn,Breton=br,Bosnian=bs,Catalan=ca,Czech=cs,Welsh=cy,Danish=da,German=de,Greek=el,+English / Australian English / British,     English=en,Esperanto=eo,Spanish / Argentinian Spanish / Mexican Spanish / Nicaraguan Spanish / Venezuelan, Spanish=es,Estonian=et,Basque=eu,Persian=fa,Finnish=fi,French=fr,Frisian=fy,Irish=ga,Galician=gl,Hebrew=he,Hindi=hi,Croatian=hr,Hungarian=hu,Interlingua=ia,Indonesian=id,Ido=io,Icelandic=is,Italian=it,Japanese=ja,Georgian=ka,Kazakh=kk,Khmer=km,Kannada=kn,Korean=ko,Luxembourgish=lb,Lithuanian=lt,Latvian=lv,Macedonian=mk,Malayalam=ml,Mongolian=mn,Marathi=mr,Burmese=my,Norwegian Bokmal=nb,Nepali=ne,Dutch=nl,Norwegian, Nynorsk=nn,Ossetic=os,Punjabi=pa,Polish=pl,Portuguese / Brazilian Portuguese=pt,Romanian=ro,Russian=ru,Slovak=sk,Slovenian=sl,Albanian=sq,Serbian / Serbian Latin=sr,Swedish=sv,Swahili=sw,Tamil=ta,Telugu=te,Thai=th,Turkish=tr,Tatar=tt,Udmurt=ud,Ukrainian=uk,Urdu=ur,Vietn amese=vi,Simplified Chinese / Simplified Chinese / Traditional Chinese / Traditional Chinese=zh&amp;quot;, &amp;quot;elements&amp;quot;: &amp;quot;id_body&amp;quot;, &amp;quot;language&amp;quot;: &amp;quot;en&amp;quot;, &amp;quot;spellchecker_rpc_url&amp;quot;: &amp;quot;/tinymce/spellchecker/&amp;quot;, &amp;quot;directionality&amp;quot;: &amp;quot;ltr&amp;quot;, &amp;quot;theme&amp;quot;: &amp;quot;advanced&amp;quot;, &amp;quot;strict_loading_mode&amp;quot;: 1, &amp;quot;mode&amp;quot;: &amp;quot;exact&amp;quot;, &amp;quot;custom_undo_redo_levels&amp;quot;: 10, &amp;quot;plugins&amp;quot;: &amp;quot;table,spellchecker,paste,searchreplace&amp;quot;}" data-mce-gz-conf="{&amp;quot;themes&amp;quot;: &amp;quot;advanced&amp;quot;, &amp;quot;languages&amp;quot;: &amp;quot;en&amp;quot;, &amp;quot;debug&amp;quot;: false, &amp;quot;diskcache&amp;quot;: true, &amp;quot;plugins&amp;quot;: &amp;quot;table,spellchecker,paste,searchreplace&amp;quot;}" id="id_body" name="body" rows="30"&gt;&lt;/textarea&gt;
  </code></pre>
  
  <p>TinyMCE is not yet working! Where I am making Mistake</p>