Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6851381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:14:28+00:00 2026-05-27T01:14:28+00:00

1- I want to install tinymce . not django-tinymce ( for some reason )

  • 0

1- I want to install tinymce. not django-tinymce (for some reason)

2-I don’t want to do it using the admin.py method (for some reason)


I want to do it my way:

in urls.py:

from django.conf.urls.defaults import patterns, include, url

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

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'cms.views.home', name='home'),
    # url(r'^cms/', include('cms.foo.urls')),

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

    # Uncomment the next line to enable the admin:
     (url(r'^admin/', include(admin.site.urls)),
      (r'^tiny_mce/(?P<path>.*)$', 'django.views.static.serve',
                               { 'document_root': 'C:/Documents and Settings/Administrator/Desktop/django-projects/cms/javascript/tinymce/jscripts/tiny_mce' },

    )))

in admin/flatpages/flatpage/change_form.html

<script type="text/javascript" src="{{ jsi18nurl|default:"../../../jsi18n/" }}"></script>
<script type="text/javascript" src="/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
mode: "textareas",
theme: "simple"
});

2 days ago i didn’t get any errors but tinymce won’t show, now, I tried to do it again and i get this error

invalid syntax (urls.py, line 22)

UPDATE

invalid syntax (urls.py, line 22) is gone

now i see dictionary update sequence element #0 has length 23; 2 is required

@Denis Kabalkin

IF i do it like this

from django.conf.urls.defaults import patterns, include, url

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

urlpatterns = patterns('',
     url(r'^admin/', include(admin.site.urls),
     url(r'^tiny_mce/(?P<path>.*)$', 'django.views.static.serve',
                               { 'document_root': 'C:/Documents and Settings/Administrator/Desktop/django-projects/cms/javascript/tinymce/jscripts/tiny_mce' }),
)

I get invalid syntax (urls.py, line 12)

IF I do it like this

from django.conf.urls.defaults import patterns, include, url

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

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'cms.views.home', name='home'),
    # url(r'^cms/', include('cms.foo.urls')),

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

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
    url(r'^tiny_mce/(?P<path>.*)$', 'django.views.static.serve',{ 'document_root': 'C:/Documents and Settings/Administrator/Desktop/django-projects/cms/javascript/tinymce/jscripts/tiny_mce'}),
    )

I’ll see no error but TinyMce will not be displayedenter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:14:28+00:00Added an answer on May 27, 2026 at 1:14 am

    This fixes the errors in urls.py:

    from django.conf.urls.defaults import patterns, include, url
    
    # Uncomment the next two lines to enable the admin:
    from django.contrib import admin
    admin.autodiscover()
    
    urlpatterns = patterns('',
         url(r'^admin/', include(admin.site.urls),
         url(r'^tiny_mce/(?P<path>.*)$', 'django.views.static.serve',
                                   { 'document_root': 'C:/Documents and Settings/Administrator/Desktop/django-projects/cms/javascript/tinymce/jscripts/tiny_mce' }),
    )
    

    Here is docs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to install git on windows. my main interest is using it from
I want to install a django-app without PIP. I'm using virtualenv with django. The
I want to install this python package: http://pypi.python.org/pypi/netifaces/0.5 But I don't know how and
I want to install the iPhone 4.0 SDK, but I don't want to lose
I want to install open cv library and i am using Dev c++ compiler.
I want to install a Rails 3 plugin from a local git repository. I
I want to install a certificate in the certificate store. Is there a way
I want to install the apk from android market into my android device through
I want to install Java using an NSIS script, but i have to know
I want to install Oracle RAC on solaris 10, using ASM but I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.