django - 'staticfiles' is not a valid tag library: Template library staticfiles not found -


hey guys trying django-oscar tutorial http://django-oscar.readthedocs.org/en/latest/internals/getting_started.html getting

'staticfiles' not valid tag library: template library staticfiles not found, tried django.templatetags.staticfiles,django.contrib.flatpages.templatetags.staticfiles,compressor.templatetags.staticfiles,oscar.templatetags.staticfiles,haystack.templatetags.staticfiles,treebeard.templatetags.staticfiles,sorl.thumbnail.templatetags.staticfiles 

any ideas??

traceback:

environment:   request method: request url: http://localhost:8000/  django version: 1.4.2 python version: 2.7.3 installed applications: ['django.contrib.auth',  'django.contrib.contenttypes',  'django.contrib.sessions',  'django.contrib.sites',  'django.contrib.messages',  'django.contrib.flatpages',  'south',  'compressor',  'oscar',  'oscar.apps.analytics',  'oscar.apps.order',  'oscar.apps.checkout',  'oscar.apps.shipping',  'oscar.apps.catalogue',  'oscar.apps.catalogue.reviews',  'oscar.apps.basket',  'oscar.apps.payment',  'oscar.apps.offer',  'oscar.apps.address',  'oscar.apps.partner',  'oscar.apps.customer',  'oscar.apps.promotions',  'oscar.apps.search',  'oscar.apps.voucher',  'oscar.apps.dashboard',  'oscar.apps.dashboard.reports',  'oscar.apps.dashboard.users',  'oscar.apps.dashboard.orders',  'oscar.apps.dashboard.promotions',  'oscar.apps.dashboard.catalogue',  'oscar.apps.dashboard.offers',  'oscar.apps.dashboard.ranges',  'oscar.apps.dashboard.vouchers',  'oscar.apps.dashboard.communications',  'haystack',  'treebeard',  'sorl.thumbnail'] installed middleware: ('django.middleware.common.commonmiddleware',  'django.contrib.sessions.middleware.sessionmiddleware',  'django.middleware.csrf.csrfviewmiddleware',  'django.contrib.auth.middleware.authenticationmiddleware',  'django.contrib.messages.middleware.messagemiddleware',  'django.contrib.flatpages.middleware.flatpagefallbackmiddleware')   template error: in template /home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/oscar/templates/oscar/partials/extrascripts.html, error @ line 6    'staticfiles' not valid tag library: template library staticfiles not found, tried django.templatetags.staticfiles,django.contrib.flatpages.templatetags.staticfiles,compressor.templatetags.staticfiles,oscar.templatetags.staticfiles,haystack.templatetags.staticfiles,treebeard.templatetags.staticfiles,sorl.thumbnail.templatetags.staticfiles    1 : {% comment %}      2 : elastislide used in several places there carousels, such list      3 : content blocks , product images.  content blocks on page,      4 : need load script everywhere - hence why here.      5 : {% endcomment %}      6 :  {% load staticfiles %}       7 : {% load compress %}      8 :       9 : {% compress js %}      10 :     <script src="{% static "oscar/js/elastislide/jquery.elastislide.js" %}" type="text/javascript" charset="utf-8"></script>      11 : {% endcompress %}      12 :   traceback: file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response   136.                     response = response.render() file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/response.py" in render   104.             self._set_content(self.rendered_content) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/response.py" in rendered_content   81.         content = template.render(context) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/base.py" in render   140.             return self._render(context) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/base.py" in _render   134.         return self.nodelist.render(context) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/base.py" in render   823.                 bit = self.render_node(node, context) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/debug.py" in render_node   74.             return node.render(context) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render   123.         return compiled_parent._render(context) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/base.py" in _render   134.         return self.nodelist.render(context) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/base.py" in render   823.                 bit = self.render_node(node, context) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/debug.py" in render_node   74.             return node.render(context) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render   101.         compiled_parent = self.get_parent(context) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py" in get_parent   98.         return get_template(parent) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/loader.py" in get_template   145.     template, origin = find_template(template_name) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/loader.py" in find_template   134.             source, display_name = loader(name, dirs) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/loader.py" in __call__   42.         return self.load_template(template_name, template_dirs) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/loader.py" in load_template   48.             template = get_template_from_string(source, origin, template_name) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/loader.py" in get_template_from_string   156.     return template(source, origin, name) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/base.py" in __init__   125.         self.nodelist = compile_string(template_string, origin) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/base.py" in compile_string   153.     return parser.parse() file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/base.py" in parse   267.                     compiled_result = compile_func(self, token) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py" in do_extends   214.     nodelist = parser.parse() file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/base.py" in parse   267.                     compiled_result = compile_func(self, token) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py" in do_block   189.     nodelist = parser.parse(('endblock',)) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/base.py" in parse   267.                     compiled_result = compile_func(self, token) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py" in do_include   262.                                    isolated_context=isolated_context) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py" in __init__   145.             t = get_template(template_path) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/loader.py" in get_template   145.     template, origin = find_template(template_name) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/loader.py" in find_template   134.             source, display_name = loader(name, dirs) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/loader.py" in __call__   42.         return self.load_template(template_name, template_dirs) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/loader.py" in load_template   48.             template = get_template_from_string(source, origin, template_name) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/loader.py" in get_template_from_string   156.     return template(source, origin, name) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/base.py" in __init__   125.         self.nodelist = compile_string(template_string, origin) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/base.py" in compile_string   153.     return parser.parse() file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/base.py" in parse   267.                     compiled_result = compile_func(self, token) file "/home/psychok7/code/comprasonline/venv/local/lib/python2.7/site-packages/django/template/defaulttags.py" in load   1043.                                           (taglib, e))  exception type: templatesyntaxerror @ / exception value: 'staticfiles' not valid tag library: template library staticfiles not found, tried django.templatetags.staticfiles,django.contrib.flatpages.templatetags.staticfiles,compressor.templatetags.staticfiles,oscar.templatetags.staticfiles,haystack.templatetags.staticfiles,treebeard.templatetags.staticfiles,sorl.thumbnail.templatetags.staticfiles 

you need add

django.contrib.staticfiles 

to installed_apps

documentation on configuring static files


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -