Re: CachedStaticFilesStorage and collectstatic for the very first time

2016-01-11 Thread Andrzej Mateja
Hi Simon, You are right. Package easy_select2 calls the url method, which you can see here: https://github.com/asyncee/django-easy-select2/blob/master/easy_select2/widgets.py#L32 I'm going to report them that problem and I'll try also find a solution. Cheers Andrzej W dniu sobota, 9 stycznia 2

Re: CachedStaticFilesStorage and collectstatic for the very first time

2016-01-08 Thread Simon Charette
Hi Andrzej, If I understand correctly you can't run `collectstatic` with `DEBUG = False` if you didn't run it with `DEBUG = True` beforehand. I can't be sure without the full traceback but I suspect one of your applications calls `django.contrib.staticfiles.storage.staticfiles_storage.url` at mo

Re: CachedStaticFilesStorage and collectstatic for the very first time

2016-01-08 Thread Andrzej Mateja
Thank you Simon for sharing your remarks although it is not the case what you described. I'm talking about deploying brand new project which is depending on external application with its own static files. Project should have also no static files collected yet, static files cashing enabled (usin

Re: CachedStaticFilesStorage and collectstatic for the very first time

2016-01-08 Thread Simon Charette
Hi Andrzej, CachedStaticFilesStorage requires you run `collectstatic` before deploying your application in production (non-DEBUG) mode. The deployment should look like that: 1) Update your code to the latest version. 2) Run `collectstatic` to cache paths to hashed versions of your assets. 3) Res

CachedStaticFilesStorage and collectstatic for the very first time

2016-01-08 Thread Andrzej Mateja
Hi, I have a problem with using CachedStaticFilesStorage as a STATICFILES_STORAGE and with external package containing its own static files (easy_select2 to be specific). If I deploy my project for the very first time with DEBUG = False, empty cache and no external package static files copied