Hello!

I'm completely stuck, double checked spelling and tried a couple of
different things. I am really new at Django and just know a bit of
Python, so don't expect me to understand any complicated terminology!

I'm on chapter 3 of James Bennett's Practical Django Projects. My
problem is that TinyMCE isn't showing up in the Admin -> New Flatpage
text area. Using Linux (Ubuntu 9.04)

>>> django.VERSION
(1, 1, 0, 'final', 0)

Latest stable TinyMCE

tiny_mce.js location                  ~/tinymce/jscripts/tiny_mce/
change_form.html location        ~/templates/admin/flatpages/flatpage/
project location                        ~/cms/


Following copy pastes--

urls.py
----------------
from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^cms/', include('cms.foo.urls')),

    # Uncomment the admin/doc line below and add
'django.contrib.admindocs'
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
        (r'^admin/', include(admin.site.urls)),
        (r'', include('django.contrib.flatpages.urls')),
        (r'^tiny_mce/(?P<path>.*)$', 'django.views.static.serve',
                { 'document_root': '/home/erik/tinymce/jscripts/tiny_mce/' }),
)

---------------------------------------

change_form.html (only the first part)
---------------------------------------

{% extends "admin/base_site.html" %}
{% load i18n admin_modify adminmedia %}

{% block extrahead %}{{ block.super }}
<script type="text/javascript" src="../../../jsi18n/"></script>
<script type="text/javascript" src="/home/erik/tinymce/jscripts/
tiny_mce/tiny_mce.js"></script>
<script type="text/javascript"> tinyMCE.init({
        mode: "textareas",
        theme: "simple"
});
</script>

---------------------------------------

Thank you for reading! I'm sorry if I forgot anything important, I'll
add it asap

--~--~---------~--~----~------------~-------~--~----~
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