Hello
I have this in my template :
<script type="text/javascript" src="{{ MEDIA_URL }}/tinyMCE/jscripts/
tiny_mce/tiny_mce.js"></script>
settings file is following:
MEDIA_ROOT = '/var/www/media/'
MEDIA_URL = "http://localhost/media/"
when i go to the webpage then the stuff that i get from server says
<script type="text/javascript" src="/tinyMCE/jscripts/tiny_mce/
tiny_mce.js"></script>
Even when i replace {{ MEDIA_URL }} with anything else i still get
this in browser:
<script type="text/javascript" src="/tinyMCE/jscripts/tiny_mce/
tiny_mce.js"></script>
Why?
Just in case you need my httpd.conf:
<Location "/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE mce.settings
PythonOption django.root /mce
PythonDebug On
PythonPath "['/home/projects', '/home/zay2/Django/Django-1.0.2-
final'] + sys.path"
</Location>
Alias /media/admin "/home/zay2/Django/Django-1.0.2-final/django/
contrib/admin/media"
Alias /media "/var/www/media"
<Directory /home/zay2/Django/Django-1.0.2-final/django/contrib/admin/
media>
Order allow,deny
Allow from all
</Directory>
<Location "/media">
SetHandler None
</Location>
<Location "/phpmyadmin">
SetHandler None
</Location>
<LocationMatch "\.(jpg|gif|png)$">
SetHandler None
</LocationMatch>
There probably is something unnecessary or confusing here, but this is
first time i've installed apache, mod_python, mysql and phpmyadmin so
if you spot room for improvement, let me know.
Alan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---