Hi, I'm a newbie to django and I'm dealing with some configuration
stuff that is making me going crazy. My problem is very simple and I
have a temporal solution, but I guess there might be a better way to
do it. So... there goes the question...
¿ How do I include javascript in a basic template ? I mean, imagine
this template:
<html>
<head>
<script src="/m/js/jQuery/jquery-1.2.6.js"
type="text/javascript"></
script>
</head>
<body>
<h1>Hello {{ user_name }}</h1>
</body>
</html>
The javscript inclusion does not work, altough I have configured these
settings:
MEDIA_ROOT = /an/absolute/file/system/path/'
MEDIA_URL = '/m/'
It is not defined in urls.py, and I suppose that I will have this
problem when including CSS and some other media, such as images, flex,
etc...
Does anybody know the right solution?
Thanks in advance :)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---