3

I need to use this plugin plugin in my app, but i have no idea about how to install and use it. So far, I have found this fork of the mentioned plugin that adds a setup.py script. After issuing the commands python setup.py build and python setup.py install, I added 'django_inlinecss' to my INSTALLED_APPS setting, but still get the following error:

.
. (rest of the traceback)
.
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
ImportError: No module named django_inlinecss

How can I install this plugin and use it properly?

4

2 回答 2

4

很抱歉给您带来不便——我没有意识到人们真的开始使用那个图书馆了!(顺便说一句,让人们真正发现它很有用真是太好了!)

无论如何,我已经在 Pypi 上发布了它,所以你现在应该能够执行以下操作:

$ pip install django-inlinecss

如果您有问题,请在以下位置开票:

https://github.com/roverdotcom/django-inlinecss

于 2013-10-15T13:38:12.133 回答
1

我遇到了同样的问题,所以我分叉了 django-inlinecss 原始存储库并解决了这个问题。

您可以使用

 pip install git+https://github.com/fjsj/django-inlinecss.git@18f2f8e5b5453f067dff0d6c0c2ae3066e56d554

成功安装它。它packages=find_packages(),在 stevejalim 的 setup.py 中缺少一行。

于 2013-07-01T05:39:54.480 回答