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

try removing data_files -- they're getting installed incorrectly! #128

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DrMeers
Copy link

@DrMeers DrMeers commented Mar 31, 2016

$ pip install django-olwidget==0.61.0

on a docker container (i.e. not within a virtualenv) resulted in the following distribution of files:

  /usr/local/lib/python2.7/site-packages/olwidget/__init__.py
  /usr/local/lib/python2.7/site-packages/olwidget/admin.py
  /usr/local/lib/python2.7/site-packages/olwidget/fields.py
  /usr/local/lib/python2.7/site-packages/olwidget/forms.py
  /usr/local/lib/python2.7/site-packages/olwidget/models.py
  /usr/local/lib/python2.7/site-packages/olwidget/tests.py
  /usr/local/lib/python2.7/site-packages/olwidget/utils.py
  /usr/local/lib/python2.7/site-packages/olwidget/widgets.py
  /usr/local/olwidget/static/olwidget/css/olwidget.css
  /usr/local/olwidget/static/olwidget/img/extra_edit_icons.png
  /usr/local/olwidget/static/olwidget/img/jquery_ui_license.txt
  /usr/local/olwidget/static/olwidget/img/popup_icons.png
  /usr/local/olwidget/static/olwidget/js/cloudmade.js
  /usr/local/olwidget/static/olwidget/js/olwidget.js
  /usr/local/olwidget/templates/admin/olwidget_change_list.html
  /usr/local/olwidget/templates/olwidget/admin_olwidget.html
  /usr/local/olwidget/templates/olwidget/editable_layer.html
  /usr/local/olwidget/templates/olwidget/info_layer.html
  /usr/local/olwidget/templates/olwidget/multi_layer_map.html
  /usr/local/olwidget/templates/olwidget/test_map_template.html

Thus Django was unable to find the templates or static files.

The data_files attribute in setup.py does not appear to be designed for the likes of django templates/static files. Simply removing it has resolved the problem for me. However I'm not an expert on setup.py so I may be missing some nuance as to why data_files was being used...

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.

1 participant