Re: filesystem path in settings.py

2011-12-08 Thread Donald Stufft
The static files app doesn't serve static files (except in development). What it's primary purpose is to take a list of "finders", and locate all of the static files from a variety of places, and collect them into one directory. This allows reusable apps to package static files within their apps

Re: filesystem path in settings.py

2011-12-08 Thread Timothy Makobu
Hi Tanya, Also have a look at this https://docs.djangoproject.com/en/dev/howto/static-files/#serving-static-files-in-production I personally leave Django out of static file serving entirely, and have the webserver serve the static media, but I'll experiment and see what advantage there is to usin

Re: filesystem path in settings.py

2011-12-04 Thread Timothy Makobu
In Django 1.3: STATIC_ROOT = os.path.join(os.path.dirname(__file__), 'static').replace('\\','/') where the folder "static" is in the root of your project folder. On Sun, Nov 27, 2011 at 2:23 PM, TANYA wrote: > I read it but after following all steps in it the error still remains. > > '/usr/l

Re: filesystem path in settings.py

2011-11-27 Thread TANYA
I read it but after following all steps in it the error still remains. '/usr/local/lib/python2.6/dist-packages/setuptools-0.6c11-py2.6.egg', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '

Re: filesystem path in settings.py

2011-11-24 Thread Timothy Makobu
And this too http://www.djangobook.com/en/2.0/ On Fri, Nov 25, 2011 at 7:41 AM, Timothy Makobu wrote: > Hi, > > Please read this whole thing > https://docs.djangoproject.com/en/dev/howto/static-files/ > > > On Fri, Nov 25, 2011 at 6:28 AM, TANYA wrote: > >> # Absolute filesystem path to the di

Re: filesystem path in settings.py

2011-11-24 Thread Timothy Makobu
Hi, Please read this whole thing https://docs.djangoproject.com/en/dev/howto/static-files/ On Fri, Nov 25, 2011 at 6:28 AM, TANYA wrote: > # Absolute filesystem path to the directory that will hold user-uploaded > files. > # Example: "/home/media/media.lawrence.com/media/" > MEDIA_ROOT = '' >