On Sat, 2008-11-22 at 18:09 -0800, waltbrad wrote: [...] > # Uncomment the next line to enable the admin: > (r'^admin/(.*)', admin.site.root), > (r'^tiny_mce/(?P<path>.*)$', 'django.views.static.serve', > { 'document_root': 'C:\tinymce\jscripts\tiny_mce' }),
The string 'C:\tinymce\jscripts\tiny_mce' is not going to interpreted as you expect, since '\t' is a special character in Python strings (a horizontal tab). You'll need to either use raw strings (r'...'), or put a second backslash in front of each special character ('\\t') or use forward slashes for the directory name. The latter is strongly preferred, since it's clear what is going on. Most well-written Python code, including Django, normalises forwards slashes into the operating system's preferred style of path. So /foo/bar will be converted to \foo\bar on Windows. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---