Pure python-alternative to Gunicorn/NGINX/Serving static content

2012-08-09 Thread Thomas Weholt
I'm using gunicorn and nginx on ubuntu when deploying my django projects, but now I need to run a project on several platforms, including windows. Is there a similar pure python configuration ( with the expected reduced performance for serving static content )? -- Mvh/Best regards, Thomas W

trouble serving static content within an included javascript libary

2011-05-26 Thread Danny Shevitz
Howdy, I'm pretty much a django newbie and can't figure out how to resolve the following issue. I am hosting a local copy of the OpenLayers javascript library and it's associated static content including .png's and .css's. On my file system, the structure is: mapping/static/openlayers.js mapping

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

Serving static content

2009-03-30 Thread Jack Orenstein
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, which points out that having django serve static conten

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 directo

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

serving static content on Windows

2008-04-16 Thread Andre Meyer
hi all i am new to Django and trying to figure out a few things. so far, everything looks very nice. but now, i am stuck at something very simple: i cannot manage to serve static content (images, css, dojo, ...) from Django itself. i have done what is described at http://www.djangoproject.com/doc

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

Serving static content with development server?

2007-05-08 Thread gsmith
I have installed the Django Development Server on my computer. I am trying to add some css and images to my project. I'm having problems getting my pictures to upload correctly. Below is the details of some of my files. setting.py MEDIA_ROOT = '' / urls.py (