Oh my aching head and static files.
STATIC_URL points to the namespace that the files will be served from:
eg
mydomain.com/static
To set this up, in nginx/apache you need a stanza that looks like:
location /static {
alias /var/www/trees/opentrees/static;
}
STATIC_ROOT is where those files are served from - in this case,
/var/www/trees/opentrees/static
This is also where collectstatic *puts* the files it finds when it's
run. This directory, apparently (I discovered last night), should
never
be in your version control (git, svn, hg)
STATICFILES_DIRS *is* in your version control. Each of these
directories should be listed. This is where collectstatic *finds*
static files to copy to STATIC_ROOT,
Your proj/app structure looks like this:
proj/static
proj/app/static
Add each of these to STATICFILES_DIRS.
Admin, and other pip installed apps, will automatically be included (I think).
I hope this helps.
cheers
L.
------
I'm treading carefully
but it's the time of night
the snowy light
the subway roar
and the whispered fights
exciting sights
but it's not enough
I thought it was
I wish it was
I thought it was
-----
You name it - The Cannanes with Explosion Robinson.