Hi,
1. No it doesn't have to be external web server. Here is what I do with Apache.
<Location "/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE mysite.settings.main
</Location>
<Location "/media/">
SetHandler None
</Location>
The SetHandler None will make sure that everything sitting in /media
will not go through django but will use apache directly.
2. You can put your templates anywhere you what where they sit is
defined only in settings/main.py.
3. If you are uploading images it probably makes sense to put them
into something like
/media/images (however for you must then use absolute path for image
upload fields so that django will know what the /media/images
translates to in terms of the actual path on your file system)
Best
On 9/28/05, Armin <[EMAIL PROTECTED]> wrote:
>
> Hey Everyone,
>
> So.. I need to host all my non-django-generated files in an external
> web server? Meaning that if my site requires a css file or an image
> file, then it shouldn't be bugging django for it?
>
> Does that mean I should leave my static html pages in an external page
> as well? Or use the template system to serve them?
>
> Does that also mean, when django upload images, the MEDIA_ROOT should
> be where the other web server has access to, meaning that taking my
> images to an alternate server requires more work?
>
> I hope my questions weren't too stupid,
> Thanks,
> Armin
>
>