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

Error: 'module' object has no attribute 'pages/css/medium-editor.css' #31

Closed
prodrig-gsl opened this issue Nov 11, 2015 · 1 comment
Closed

Comments

@prodrig-gsl
Copy link

I have installed this extension:

git clone https://github.com/ckan/ckanext-pages.git ckanext-pages.git
cd ckanext-pages.git
pip install -r dev-requirements.txt
python setup.py install

I have added to the config file of ckan this:

ckan.plugins = ... pages ...
ckanext.pages.allow_html = True
ckanext.pages.editor = ckeditor

I have started the server but I get the error:

File "/home/vagrant/ckan.git/local/lib/python2.7/site-packages/ckanext_pages-0.1-py2.7.egg/ckanext/pages/theme/templates_main/base.html", line 10, in block "links"
  {% resource 'pages/css/medium-editor.css' %}
File "/home/vagrant/ckan.git/ckan/lib/jinja_extensions.py", line 315, in _call
  h.include_resource(args[0], **kwargs)
File "/home/vagrant/ckan.git/ckan/lib/helpers.py", line 1358, in include_resource
  r = getattr(fanstatic_resources, resource)
AttributeError: 'module' object has no attribute 'pages/css/medium-editor.css'

Do I have to install the editor manually?

grahame pushed a commit to BioplatformsAustralia/ckanext-pages that referenced this issue May 18, 2016
grahame pushed a commit to BioplatformsAustralia/ckanext-pages that referenced this issue May 18, 2016
metaodi added a commit that referenced this issue May 19, 2016
install fanstatic templates (fixes #31)
@metaodi
Copy link
Member

metaodi commented May 19, 2016

Fixed with #35

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

No branches or pull requests

2 participants