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
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
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
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',
'
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
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 = ''
>
6 matches
Mail list logo