Search code examples
djangopluginssettingspipdjango-inlinecss

How to install/use django-inlinecss


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?


Solution

  • I had the same problem, so I forked django-inlinecss original repostory and fixed the problem.

    You can use

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

    to install it successfully. It was missing a packages=find_packages(), line in stevejalim's setup.py.