Closed GoogleCodeExporter closed 9 years ago
Thanks for the bug report! Did you add the app to your INSTALLED_APPS in
settings?
Original comment by wkornew...@gmail.com
on 18 Mar 2009 at 9:45
BTW, do you use {{ MEDIA_URL }} in your templates or do you enter it manually?
You
have to use MEDIA_URL in order to make this work. On the dev_appserver the
MEDIA_URL
becomes /generated_media/media/.
Original comment by wkornew...@gmail.com
on 18 Mar 2009 at 9:54
I didn't define MEDIA_URL in my settings, coz MEDIA_VERSION is. Should I define
it? If not, how can I access it in
my views?
Original comment by dibauna...@gmail.com
on 20 Mar 2009 at 9:31
No, that's fine. But do you use {{ MEDIA_URL }} in your templates and is
"content" in
your INSTALLED_APPS?
Original comment by wkornew...@gmail.com
on 20 Mar 2009 at 9:37
{{ MEDIA_URL }} yields nothing in my template, & of course content is listed in
INSTALLED_APPS. I'll try upload
the project.
Thanks.
Original comment by dibauna...@gmail.com
on 22 Mar 2009 at 3:56
You have to use {{ MEDIA_URL }}. For this to work you need to add a context
processor:
TEMPLATE_CONTEXT_PROCESSORS = (
...
'django.core.context_processors.media',
...
)
Also, you have to use either ragendja.template.render_to_response/_string or
Django's
render_to_response/_string with RequestContext. Otherwise, context processors
get
ignored.
Original comment by wkornew...@gmail.com
on 22 Mar 2009 at 4:07
Marking as invalid since you didn't use MEDIA_URL.
Original comment by wkornew...@gmail.com
on 22 Mar 2009 at 7:26
Original issue reported on code.google.com by
dibauna...@gmail.com
on 18 Mar 2009 at 9:37