title: Django not recognizing the MEDIA_URL path?
body: <p>So I'm trying to get TinyMCE up and running on a simple view function, but the path to the tiny_mce.js file gets screwed up. The file is located at /Users/home/Django/tinyMCE/media/js/tiny_mce/tiny_mce.js. I believe that /media/js/tiny_mce/tiny_mce.js is correct, as the development server has no access to files above the root of the Django project folder. In the rendered page, it says in the debugger that the javascript file was not found. This is because it was trying to look through /js/tiny_mce/tiny_mce.js without addressing the /media/ part of the pathname.</p>
  
  <p>Anyway, here's the script snippet for the javascript in a template named 'simple.html'. <code>&lt;script type="text/javascript" src="{{ MEDIA_URL }}/js/tiny_mce/tiny_mce.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
   tinyMCE.init({
    mode : "textareas",
    theme : "simple"
   });
  &lt;/script&gt;</code></p>
  
  <p>And this is what the vital parts of my settings is like.</p>
  
  <pre><code>MEDIA_ROOT = os.path.join(_base, 'media')
  MEDIA_URL = 'http://127.0.0.1:8000/media/'
  ADMIN_MEDIA_PREFIX = '/media/'
  
  INSTALLED_APPS = (
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.sites',
      'tinymce',
  )
  </code></pre>