While I'm able to most use media generator well I'm having a heck of a
time getting it to work with Javascript.

My directory structure is:

/project_root
/common
/apps
/apps/ajaxrating
/apps/ajaxrating/__init__.py
/apps/ajaxrating/settings.py
/apps/ajaxrating/media
/apps/ajaxrating/media/js
/apps/ajaxrating/media/js/rating.js
/apps/ajaxrating/media/images
/apps/ajaxrating/media/images/star.gif

then in rating.js I have code such as:

var url = site_data.settings.MEDIA_URL + 'ajaxrating/media/images/';
star.setAttribute('src', url+'star.gif');

also, ajaxrating is in my installed apps list. Via settings.py the
javascript code is working fine. It's just the problem getting to the
images.

My understanding is media generator should pick up the images and add
them to _generated_media as well as then make them available. What
happens now is I get 404 and 500 errors such as:

 File "/Users/daviddevalk/Desktop/BlindRebel/common/appenginepatch/
mediautils/views.py", line 27, in get_file
    raise Http404('Media file not found: path: %s' % path)

What am I doing wrong?

Thx,

Dave




--

You received this message because you are subscribed to the Google Groups 
"app-engine-patch" group.
To post to this group, send email to [email protected].
For more options, visit this group at 
http://groups.google.com/group/app-engine-patch?hl=.


Reply via email to