collectstatic apache configuration

Issue #1428 new
John Boyd created an issue

Hello,

I have been fighting with this apache (mis)configuration for the last couple of
days.

Can someone give me an idea how to properly use collectstatic.

The problem is I am unable to upload images for the products.

python manage.py collectstatic gave me the following folder layout:

{{{

static-collect
├── admin
│   ├── css
│   ├── img
│   │   ├── admin
│   │   └── gis
│   └── js
│   └── admin
├── cache
│   ├── 65
│   │   └── 63
│   └── cd
│   └── fc
├── css
├── images
└── js

}}}
My virtualhost httpd.conf includes the following lines :
{{{

..........
Alias /static/ /usr/home/john/satchmo2/store/static-collect/
..........
Alias /media/ /usr/home/john/satchmo2/store/static-collect/
...........
}}}

My apache log has the following lines :
{{{

File does not exist: /usr/home/john/satchmo2/store/static-collect/images/productimage-picture-py-rocks-2_t120.jpg, referer: http://artandcraft.does-it.net/admin/product/product/2/
File does not exist: /usr/home/john/satchmo2/store/static-collect/css/base.css, referer: http://artandcraft.does-it.net/admin/product/product/
File does not exist: /usr/home/john/satchmo2/store/static-collect/admin/img/icon_searchbox.png, referer: http://artandcraft.does-it.net/admin/product/product/
File does not exist: /usr/home/john/satchmo2/store/static-collect/admin/img/icon-yes.gif, referer: http://artandcraft.does-it.net/admin/product/product/
File does not exist: /usr/home/john/satchmo2/store/static-collect/admin/img/icon-no.gif, referer: http://artandcraft.does-it.net/admin/product/product/
File does not exist: /usr/home/john/satchmo2/store/static-collect/admin/img/icon_searchbox.png, referer: http://artandcraft.does-it.net/admin/product/product/
File does not exist: /usr/home/john/satchmo2/store/static-collect/admin/img/icon-yes.gif, referer: http://artandcraft.does-it.net/admin/product/product/
File does not exist: /usr/home/john/satchmo2/store/static-collect/admin/img/icon-no.gif, referer: http://artandcraft.does-it.net/admin/product/product/

}}}

Comments (5)

  1. Log in to comment