Hello,
I am working on the development server.  I am still trying to wrap my
head around MEDIA_ROOT, MEDIA_URL, and get an idea of best practices.
I'm trying to implement tinymce in the admin, and I'm having a path
issue.
I put tinymce in my project folder (django-tinymce 1.5)
and then put tiny_mce into a js file in my media root

(In these examples, the 3 dots are a long absolute path on my local
machine, I didn't want to include the whole thing.  They are going to
a directory that mirrors content on a production server.)

MEDIA_ROOT = '/Users/...media/'

MEDIA_URL = '/Users/...media/'
(I had to change this to get it to write the path below, before it was
looking for tinymce in my project directory)

ADMIN_MEDIA_PREFIX = '/media/'

/Users/.../media/js/tiny_mce/tiny_mce.js
gets this error HTTP/1.1" 404 2260 in the terminal window when I load
my admin page

If I paste this same url into my browser I get the tiny_mce.js file

I don't understand why it's getting a 404.

The way I'm trying to implement it, is in my models.py file:
from tinymce import models as tinymce_models
desc = tinymce_models.HTMLField(max_length=1000,
verbose_name='description')

(this is part of a model Film, which gets registered in admin.py)

It shows up, but I'm still getting a textarea for the desc. field.
I see the 404 error in the terminal window when I access the film
admin page through the browser.

Any help would be appreciated,
Thanks,
Wendy






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to