Comments (3)
Hi!
By default 'imagestore/base.html' trying to extend 'base.html' in root
templates folder.
But you can override this behaviour by pointing IMAGESTORE_TEMPLATE in your
settings file to default template in your project
2013/8/11 schamhaartoupee [email protected]
Hello,
maybe i don't get it, but i have an issue trying out imagestore.
I use it with django-cms and tried to make a simple gallery, all settings
default.I get this error when i try to open the gallery
Exception Type: TemplateDoesNotExist
Exception Value: base.htmlError during template rendering
In template
/home/jonni/Projekte/fotoladen/lib/python2.7/site-packages/imagestore/templates/imagestore/base.html,
error at line 1
base.html
1 {% extends IMAGESTORE_TEMPLATE|default:"base.html" %}
2 {% load i18n %}
3 {% load url from future %}
45 {% block head %}
6 {% if IMAGESTORE_LOAD_CSS %}
7
8 {% endif %}
9 {% endblock %}
1011 {% block breadcrumb %}
I don't get it: the template "base.html" is trying to extend from itself?
What am i thinking wrong?—
Reply to this email directly or view it on GitHubhttps://github.com//issues/19
.
from imagestore.
I had the same error message, even though I was settings IMAGESTORE_TEMPLATE
in settings.py
. It seemed that to the renderer, IMAGESTORE_TEMPLATE
wasn't set.
I finally traced it down to the context processor not being invoked, so the var was not there.
In my project, I'm using i18n, so I need to set TEMPLATE_CONTEXT_PROCESSORS
myself:
import django.conf.global_settings as DEFAULT_SETTINGS
TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_SETTINGS.TEMPLATE_CONTEXT_PROCESSORS + (
'django.core.context_processors.i18n',
)
I needed to add imagestore's context processor:
TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_SETTINGS.TEMPLATE_CONTEXT_PROCESSORS + (
'django.core.context_processors.i18n',
'imagestore.context_processors.imagestore_processor',
)
I think the need to plug in imagestore's context processor is something that would be good to add to the documentation.
(This is with Django 1.4, which I have to run for annoying non-technical reasons)
from imagestore.
i think, you need call base.html file in all file : {% extends '../base.html' %}
from imagestore.
Related Issues (20)
- Django-CMS integration does not use namespaces HOT 1
- Test example doesn't work - ImportError: No module named mptt HOT 1
- Custom users not found HOT 6
- Exclude empty albums from album list (for non-owner)
- Cannot resolve keyword 'items' into field. Choices are: id, name
- ValueError: Cannot create form field for 'album' yet, because its related model 'imagestore.Album' has not been loaded yet
- Django 1.9 incompatibility. HOT 3
- Is imagestore compatible with django cms 3.2? HOT 2
- AttributeError at /admin/imagestore/album/add/
- RuntimeError: Conflicting 'image' models in application 'imagestore' HOT 1
- Add little feature regarding urls
- Could you pls update to Django 1.10? HOT 7
- ImportError: No module named importlib HOT 5
- is the author accepting any pull requests HOT 2
- Does this package support Python 3? HOT 1
- Unable to create an album with Django 1.10
- django 1.8 issue with View class HOT 2
- License File Missing for hovel/imagestore HOT 2
- Migration missing in app
- Error ImportError: cannot import name 'permalink' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imagestore.