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

Backport of #1188 "Serve staticfiles in the webapp if whitenoise is installed" to 0.9.x #1295

Merged
merged 2 commits into from
Sep 27, 2015
Merged

Conversation

deniszh
Copy link
Member

@deniszh deniszh commented Aug 16, 2015

This avoids the collectstatic step & apache configuration. It's probably slightly less optimal than serving files with apache/nginx but much easier to start with.
Whitenoise is compatible with Django 1.4 and above, but before version 2.0.2 it was compatible only with python 2.7, so in this version safecheck is included.

Tested with synthesize and manual whitenoise installation, but please check more.

Rebase of #1209

…nstalled" to 0.9.x

This avoids the collectstatic step & apache configuration. It's probably slightly less optimal than serving files with apache/nginx but much easier to start with.
Whitenoise is compatible with Django 1.4 and above, but before version 2.0.2 it was compatible only with python 2.7, so in this version safecheck is included.

Tested with synthesize and manual whitenoise installation, but please check more.
@deniszh deniszh added this to the 0.9.13 milestone Aug 16, 2015
@deniszh
Copy link
Member Author

deniszh commented Aug 16, 2015

@SEJeff - rebased #1209, could you please check?

Proper Whitenoise detection backpoted from master #1296
@obfuscurity
Copy link
Member

This looks ok to me, @brutasse any opinions?

@obfuscurity obfuscurity mentioned this pull request Sep 19, 2015
13 tasks
@brutasse
Copy link
Member

@obfuscurity LGTM, but I haven't touched 0.9.x in ages :)

@obfuscurity
Copy link
Member

@deniszh Are the benefits worth the added complexity to 0.9.x? If we can't enforce a minimum version of whitenoise (because of python/django dependencies and conflicts) in setup.py, I wonder if many users will know to take advantage of it.

@obfuscurity
Copy link
Member

Bah, humbug.

obfuscurity added a commit that referenced this pull request Sep 27, 2015
Backport of #1188 "Serve staticfiles in the webapp if whitenoise is installed" to 0.9.x
@obfuscurity obfuscurity merged commit d16e000 into graphite-project:0.9.x Sep 27, 2015
@deniszh
Copy link
Member Author

deniszh commented Sep 27, 2015

Latest whitenoise supports 2.6, it's just more, like, precaution. IMO will help in some cases.
👍
Thanks!

@deniszh deniszh deleted the 0.9.x_bp_1188_real branch September 27, 2015 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants