thanks malcolm, I think we´re getting closer ...

Am 25.10.2006 um 14:42 schrieb Malcolm Tredinnick:

>
> On Wed, 2006-10-25 at 14:13 +0200, patrickk wrote:
>> sorry for being a pain in the neck, but we´re about to go online with
>> our site and I desperately need to solve this problem.
>
> You already mentioned that you have solved it using lighttpd (or, at
> least, that's what you seem to have mentioned), so if things are  
> really
> that tight, use lighttpd for your development. Spending (apparently)
> hours just to try and use the django development server in your chosen
> configuration seems like time wasted in your current circumstances.

misunderstanding. I just mentioned that we´re using lighttpd to serve  
media in production mode.

>
>> solutions I had so far:
>> 1. hardcoding media-urls incl. the host (not nice)
>> 2. symlink from /django/contrib/media/ to /media/ (problem with
>> django-updates)
>
> Why would you do the symlink in that direction? Link /media to the
> Django source tree, then things served from /media are read from teh
> Django source.
>
>> short description again:
>> in my source-code I´m having this
>> <img src="/media/uploads/userprofiles/2006/10/210/tn_profil.jpg" />
>
> You seem to be jumbling up a few different uses of "media" throughout
> all this. If you are using the /media/ prefix to serve admin media,  
> why
> not put the uploaded files under another URL prefix? It looks like  
> some
> of your problems might come from trying to insist that both uploaded
> files and admin media are served from "/media/".

that´s true. all our media is in /media/ ... is that not possible?

if I change ADMIN_MEDIA_PREFIX, none of the css, images etc. is  
loaded with using the dev-server.

our directory-structure:
/media/css/
/media/js/
/media/uploads/
/media/img/
...

thanks,
patrick

>
> Also note that you can change the prefix that the admin system uses to
> look for it's media (it's in settings.py), so you could remove the  
> name
> clash that way.
>
>> the image is uploaded by a user.
>> this image is not displayed because it´s not in /django/contrib/ 
>> admin/
>> media/, but the dev-server looks there.
>> so, I want the dev-server to look for this image in /media/uploads/
>> instead.
>
> Regards,
> Malcolm
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to