I made a symlink from /django/contrib/admin/media/ to my media- 
directory to solve this issue.
it works, but it doesn´t seem clean - e.g., when I do "svn update" I  
guess I´m losing the changes to the media-directory.

is there any better solution?

thanks,
patrick

Am 24.10.2006 um 19:22 schrieb patrickk:

>
>
> Am 24.10.2006 um 19:11 schrieb orestis:
>
>>
>> You mention dev-server, yet you talk about apache and lighttpd.
>>
>> If running the dev-server, you shouldn't do anything, since it  
>> figures
>> out itself how to serve files.
>
> yes, but it looks for media-files in django/contrib/admin/media/ ...
> I´d prefer not to switch my media-directory between development- and
> production-mode since there are files uploaded by users ... and I´m
> not able to see these files with the dev-server.
>
>>
>> If you're running apache, either with mod_python or with mod_fcgi,  
>> you
>> should just create a link to the /foo/bar/admin/media directory in
>> your
>> www directory.
>
> that´s done. in production-mode, I´m not having any problems.
>
> I´m sorry if there´s a misunderstanding.
> my basic question is: how can I change the directory where the dev-
> server looks for media-files?
>
> patrick
>
>>
>> You then have to edit settings.py to tell the admin where to look for
>> its media.
>>
>>
>>>
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to