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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
(
15 matches
Mail list logo