empty media_root inside custom admin template
Hi,
I am trying to add a Rich Text Fields to my Django admin app following
this blog post: http://www.beshrkayali.com/blog/2009/02/tinymce-django-admin/
However, I in my custom admin template "base_site.html" the
{{media_root}} placeholder is always replaced with a blank. My
settings.py in the project directory looks like this:
MEDIA_ROOT = os.path.join(PROJECT_DIR, "media")
MEDIA_URL = '/media/'
django.core.context_processors.media is added to
TEMPLATE_CONTEXT_PROCESSORS and I have defined urlpatterns for /
media/. The media directory exists inside the project directory.
Ideas anyone?
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home