On Mon, May 11, 2009 at 3:36 PM, Frutoso <[email protected]> wrote:

>
> So let me get this straight.....
>
> in development enviroment: In order to get images to be displayed in a
> template there is a work around that needs to be down?
>
> in production enviroment: There is not a work around? simply create an
> <img src> tag and enter path to image files?
>
> Please explain this in more details.
>
> I have read through some of the threads and have tried the googles but
> I cannot get information I need.


In general your development environment should match your
production environment as much as possible. So no in dev there shouldn't be
anything different that needs to be done.

HOWEVER! Django doesn't recommend that the framework server static media
files in production. This is just common sense (why load an entire framework
and python to serve a file that apache or whatever web server you are using,
is built to serve by itself?). So a lot of us use django to server static
files in local developers, because we don't have apache running on our
laptops. But in development preproduction and production, that is not very
efficient so we let the Web server deal with those files.

Read more here: http://docs.djangoproject.com/en/dev/howto/static-files/

Hope that helps,

Michael

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to