Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite loop when used in conjunction with collectstatic --link #72

Closed
eedeep opened this issue Feb 7, 2012 · 1 comment
Closed

Infinite loop when used in conjunction with collectstatic --link #72

eedeep opened this issue Feb 7, 2012 · 1 comment
Labels
bug Bug confirmed or can be reproduced

Comments

@eedeep
Copy link

eedeep commented Feb 7, 2012

Using django-pipeline 1.1.25 to generate compressed css and js to STATIC_ROOT along with python manage. py collectstatic --link (django 1.3.1) will cause an infinite loop with no errors when rendering a template with {% compressed_js %} or {% compressed_css %} if new css or js needs to be generated. This issue will be fixed with the addition of the --clear option to collectstatic in django 1.4 ( https://code.djangoproject.com/changeset/16509)

In the meantime the solution is to use PIPELINE_AUTO = False, delete your generated css and js files before running
python manage.py collectstatic --link and then run python manage.py synccompress to regenerate your compressed css and js.

I'm just reporting this form information purposes really, because it took me a while to debug so could possibly help others who are scratching their heads in a similar situation.

@cyberdelia
Copy link
Member

This should not be a problem with pipeline 1.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug confirmed or can be reproduced
Projects
None yet
Development

No branches or pull requests

2 participants