There are a few issues with many-to-many fields and empty results like
this. The whole area has been given an overhaul in the queryset-refactor
branch and so should be fixed on trunk soon-ish.
In the meantime, just select the two halves individually and merge them
in Python.
Malcolm
--
If it walks out of your refrigerator, LET IT GO!!
http://www.pointy-stick.com/blog/
<link rel="stylesheet" href="dirview.css" type="text/css">
and
MEDIA_ROOT = '/home/phil/philproj/media/'
ls -al /home/phil/philproj/media
total 12
drwxr-xr-x 2 phil phil 4096 2008-03-04 11:57 .
drwxr-xr-x 7 phil phil 4096 2008-03-04 12:14 ..
-rw-r--r-- 1 phil phil 96 2008-03-04 11:57 dirview.css
I've tried everything? Help? Thanks
Don't you need a '/media/' or something before that 'dirview.css'?
What is your MEDIA_URL?
Since Django normally has the media files (css, images etc) served
completely separately, relative paths to media files don't really work.
Btw, be careful when starting a new subject by replying to an old
thread: you've just hijacked another thread, see http://groups.google.com/group/django-users/browse_thread/thread/92052a98c16509a0?hl=en
Better start a new thread/message/question from scratch.
currently, here
TEMPLATE_DIRS = (
'/home/philproj/dirview/httemplates',)
but I have copies of dirview.css in that any every
other directory I could think of accessible to user phil.
And, oh yeah, no slash on the end. That's inconsistent
with other settings like MEDIA_ROOT.
Funny that css and js are considered "static media". In the spirit
of templating they should be dynamic. I would characterize them as
junk_patched_on_to_a_crappy_platform. But, Oh well.
> Presumably
> your browser is reading the CSS file and making a request back to your
> web server for the file. You haven't told us anything about your web
> server configuration. What path is being requested to the server for
> the image file? How is your web server handling that request?
>
> If you're using the development server, was there anything in the
> serving static media FAQ that you did not understand?
Therein lies the problem. I don't want to have one set of code for
the development server and another for ?. E.g., django code which
works for sqlite works for MySQL.
I think I will explore using the template loader more creatively and
possibly recursively to produce inline css and js.
Thanks for all help.