1

我正在使用 django-pipeline,运行“sudo python manage.py collectstatic”

收到此错误:

Traceback (most recent call last): 
File "manage.py", line 10, in <module> execute_from_command_line(sys.argv) 
File "/Users/office/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line utility.execute() 
File "/Users/office/lib/python2.7/site-packages/django/core/management/__init__.py", line 330, in execute self.fetch_command(subcommand).run_from_argv(self.argv) 
File "/Users/office/lib/python2.7/site-packages/django/core/management/base.py", line 390, in run_from_argv self.execute(*args, **cmd_options) 
File "/Users/office/lib/python2.7/site-packages/django/core/management/base.py", line 441, in execute output = self.handle(*args, **options) 
File "/Users/office/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 168, in handle collected = self.collect() 
File "/Users/office/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 120, in collect raise processed ValueError: The file 'bower_components/eonasdan-bootstrap-datetimepicker/build/fonts/glyphicons-halflings-regular.eot' could not be found with <pipeline.storage.PipelineCachedStorage object at 0x10d274e10>.

知道如何解决这个问题吗?


如何在 SPARQL 中转置查询结果

我正在使用 TopBraid Composer 编写 SPARQL 查询。我查询了以下结果:

| Header    | Total     |
|--------   |-------    |
|           |           |
| A         | 5         |
|           |           |
| B         | 6         |
|           |           |
| C         | 7         |
|           |           |
| D         | 8         |

现在我的谦虚问题是我们是否可以以某种方式将结果转置如下:

| Header    | A     | B     | C     | D     |
|--------   |---    |---    |---    |---    |
| Total     | 5     | 6     | 7     | 8     |
4

1 回答 1

1

使用 django-pipeline-forgiving(https://pypi.python.org/pypi/django-pipeline-forgiving)解决了这个问题。

  • pip install django-pipeline-forgiving
  • 在你的 settings.py 中设置: STATICFILES_STORAGE = 'django_pipeline_forgiving.storages.PipelineForgivingStorage'
于 2016-02-19T05:46:38.277 回答