Re: Serving static content

2009-03-30 Thread Malcolm Tredinnick
On Mon, 2009-03-30 at 19:37 -0400, Jack Orenstein wrote: > I have my first Django app running, but with very basic html. I'm > trying to add my first tag and finding it difficult to serve up > the image file. > > I've read this: http://docs.djangoproject.com/en/dev/howto/static- > files/?fr

Re: Serving static content

2009-03-30 Thread Graham Dumpleton
On Mar 31, 10:37 am, Jack Orenstein wrote: > I have my first Django app running, but with very basic html. I'm   > trying to add my first tag and finding it difficult to serve up   > the image file. > > I've read this:http://docs.djangoproject.com/en/dev/howto/static- > files/?from=olddocs, wh

Re: Serving static content using Apache

2008-08-18 Thread Steve Holden
djandrow wrote: > Managed to get it working, thanks everyone. > > I guess the problem was CSS was missing from locationMatch > --~--~-~--~~~---~--~~ Good news. For what it's worth, when I am serving static content I tend to set whole directories to be served stat

Re: Serving static content using Apache

2008-08-18 Thread djandrow
Managed to get it working, thanks everyone. I guess the problem was CSS was missing from locationMatch --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django

Re: Serving static content using Apache

2008-08-18 Thread djandrow
I've added this, #css has been added to the end SetHandler None but still no luck, however if i look at the pages statically on the server rather than having apache serve them the CSS is used so now I know that the CSS works and i guess its in the right place, although the relative and abs

Re: serving static content on Windows

2008-04-17 Thread apm
Indeed, the problem was the shortcut! Now, it just works fine. Thanks a lot, Koen André --~--~-~--~~~---~--~~ 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@googleg

Re: serving static content on Windows

2008-04-16 Thread koenb
The error message says it all: it is looking for testporject.polls.views.django.views.static. Notice the first part. It means your view function is taken from within testproject.polls.views (which is probably on top in your patterns declaration). You should take this declaration out of there and a

Re: Serving static content with development server?

2007-05-09 Thread Alexander Pugachev
Images are uploaded to directory which name is constructed from 2 parts: MEDIA_ROOT + model's upload_to. Then image url gets constructed from MEDIA_URL and upload_to (and image name itself). So if your C:\django\site_media\ is accessible with web-server, and say C:/django/ is DOCUMENT_ROOT of Apac

Re: Serving static content with development server?

2007-05-09 Thread gsmith
James, I use get_image_url and the src is still 'c:/django/site_media/ IMG_0394.JPG'. I think their is a property that I don't have correct. Below is a list of properties that might be wrong settings.py MEDIA_ROOT = '' MEDIA_URL = '' urls.py (r'^site_media/(?P.*)$', 'dj

Re: Serving static content with development server?

2007-05-08 Thread James Bennett
On 5/8/07, gsmith <[EMAIL PROTECTED]> wrote: > by using the following html ' However, this contains the string 'c:/django/site_media/image.jpg'. Use The "get_FIELDNAME_url" method will return the URL of the file relative to MEDIA_ROOT, while just printing out the field value will return the fi