-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Mark Django REST Framework as incompatible with eggs #2386
Conversation
Okay, sure thing. If there's anything online we can link to from this PR with context that'd be helpful. |
Also if noted in the release notes, then include it with a more user-facing message (eg. "Ensure templates load correctly when pacakge is installed with easy_install in windows") Link to relevant docs... https://pythonhosted.org/setuptools/setuptools.html#setting-the-zip-safe-flag
Also http://flask.pocoo.org/docs/0.10/patterns/distribute/#basic-setup-script
|
Mark Django REST Framework as incompatible with eggs
Also related: |
Actually, I had it while pip installing my project which has DRF in the setup's install_requires. |
In which case utterly mystifying that it's not been reported previously. Be interesting to know if there's any design convo around changing the default of this - as a developer I shouldn't have to know about magically keys that I have to set in the config - it really oughta just not be broken in the first place. |
I just found that sometime Django REST Framework HTML renderer may not work depending on how you install it. In my case, this was listed within a
setup.py
'sinstall_require
which lead Django REST Framework to be installed as an egg.Django doesn't load templates from eggs by default and has no way to gather the static files from an egg at all.
jezdez & dstuff confirm the way to fix that is to mark the packages as
zip_safe = False
.