Thanks Ben, Besides, i've found that www.lawrence.com and www.ljworld.com (which are famous sites that use django) use a http://media.their-domain-name.com to store the media files. All static files, images, css are from the http://media.their-domain-name.com server. Obviously the media subdomain is not a django environment, i wonder if we can setup an environment like that, and can i still upload image to the media subdomain from the django admin console?
Arnold On Jul 17, 3:29 pm, Ben van Staveren <[EMAIL PROTECTED]> wrote: > You're better off not doing it with Django, just make a directory > that won't be handled by Django and stick all your static content in > there. After all, the webserver is usually better at serving static > files than Django is :) > > On 17/07/2007, at 2:26 PM, Arnold Chen wrote: > > > > > Can any one please tell me how to serve a static PDF in django ? The > > file is located in the server, and do not need to be created on the > > fly (by using report lab). I have done it in PHP by using header, but > > i just don't know how to do it with django. Thanks --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---