Hello,

svn update done on 11/29

ADMIN_MEDIA_PREFIX = '/media/'

tiny_mce directory copied in
C:\soft\django_src\django\contrib\admin\media\js

MODEL:
from django.core import meta
from django.models.contacts import contacts

class Place(meta.Model):
    name = meta.CharField(maxlength=200)
    city = meta.CharField(maxlength=200)
    street = meta.CharField(maxlength=200)
    postal_code = meta.CharField(maxlength=200)
    phone = meta.CharField(maxlength=200)
    def __repr__(self):
        return self.name
    class META:
        admin = meta.Admin()

class Event(meta.Model):
    title = meta.CharField(maxlength=200)
    the_place = meta.ForeignKey(Place)
    contacts = meta.ManyToManyField(contacts.Contact)
    start_date = meta.DateField()
    description = meta.TextField()
    def __repr__(self):
        return self.title
    class META:
        admin = meta.Admin(
            js = (
                '/media/js/tiny_mce/tiny_mce.js',
                '/media/js/tiny_mce/textareas.js',
            ),
        )

http://127.0.0.1:8000/media/js/tiny_mce/tiny_mce.js
Looks good in the browser.

and TinyMCE is not set for description area in admin.

Could you please tell me why ?

Olivier.

Reply via email to