Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Environment:
- Request Method: GET
- Request URL: http://localhost:8000/
- Django Version: 1.3
- Python Version: 2.7.1
- Installed Applications:
- ['django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.sites',
- 'django.contrib.messages',
- 'django.contrib.admin',
- 'django.contrib.admindocs',
- 'django.contrib.staticfiles',
- 'project.web',
- 'south']
- 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')
- Template error:
- In template /home/rfkrocktk/Desktop/project/src/project/web/templates/foundation.html, error at line 1
- 'staticfiles' is not a valid tag library: Template library staticfiles not found, tried django.templatetags.staticfiles,django.contrib.admin.templatetags.staticfiles
- 1 : {% load staticfiles %}
- 2 : <html>
- 3 : <head>
- 4 : {% block stylesheets %}
- 5 : <link rel="stylesheet" href="{% static "styles/bootstrap-1.2.0.min.css" %}">
- 6 : {% endblock %}
- 7 : <title>{% block title %}Tzibor{% endblock %}</title>
- 8 : </head>
- 9 : <body>
- 10 : <h1>It Works!</h1>
- 11 : {% block scripts %}
- Traceback:
- File "/home/rfkrocktk/Desktop/project/eggs/Django-1.3-py2.7.egg/django/core/handlers/base.py" in get_response
- 111. response = callback(request, *callback_args, **callback_kwargs)
- File "/home/rfkrocktk/Desktop/project/src/project/web/views.py" in root
- 5. return direct_to_template(request, 'foundation.html', {})
- File "/home/rfkrocktk/Desktop/project/eggs/Django-1.3-py2.7.egg/django/views/generic/simple.py" in direct_to_template
- 27. t = loader.get_template(template)
- File "/home/rfkrocktk/Desktop/project/eggs/Django-1.3-py2.7.egg/django/template/loader.py" in get_template
- 157. template, origin = find_template(template_name)
- File "/home/rfkrocktk/Desktop/project/eggs/Django-1.3-py2.7.egg/django/template/loader.py" in find_template
- 134. source, display_name = loader(name, dirs)
- File "/home/rfkrocktk/Desktop/project/eggs/Django-1.3-py2.7.egg/django/template/loader.py" in __call__
- 42. return self.load_template(template_name, template_dirs)
- File "/home/rfkrocktk/Desktop/project/eggs/Django-1.3-py2.7.egg/django/template/loader.py" in load_template
- 48. template = get_template_from_string(source, origin, template_name)
- File "/home/rfkrocktk/Desktop/project/eggs/Django-1.3-py2.7.egg/django/template/loader.py" in get_template_from_string
- 168. return Template(source, origin, name)
- File "/home/rfkrocktk/Desktop/project/eggs/Django-1.3-py2.7.egg/django/template/base.py" in __init__
- 108. self.nodelist = compile_string(template_string, origin)
- File "/home/rfkrocktk/Desktop/project/eggs/Django-1.3-py2.7.egg/django/template/base.py" in compile_string
- 136. return parser.parse()
- File "/home/rfkrocktk/Desktop/project/eggs/Django-1.3-py2.7.egg/django/template/base.py" in parse
- 239. compiled_result = compile_func(self, token)
- File "/home/rfkrocktk/Desktop/project/eggs/Django-1.3-py2.7.egg/django/template/defaulttags.py" in load
- 1054. (taglib, e))
- Exception Type: TemplateSyntaxError at /
- Exception Value: 'staticfiles' is not a valid tag library: Template library staticfiles not found, tried django.templatetags.staticfiles,django.contrib.admin.templatetags.staticfiles
Advertisement
Add Comment
Please, Sign In to add comment