Guest User

Untitled

a guest
Sep 6th, 2011
654
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.60 KB | None | 0 0
  1. Environment:
  2.  
  3.  
  4. Request Method: GET
  5. Request URL: http://localhost:8000/
  6.  
  7. Django Version: 1.3
  8. Python Version: 2.7.1
  9. Installed Applications:
  10. ['django.contrib.auth',
  11. 'django.contrib.contenttypes',
  12. 'django.contrib.sessions',
  13. 'django.contrib.sites',
  14. 'django.contrib.messages',
  15. 'django.contrib.admin',
  16. 'django.contrib.admindocs',
  17. 'django.contrib.staticfiles',
  18. 'project.web',
  19. 'south']
  20. Installed Middleware:
  21. ('django.middleware.common.CommonMiddleware',
  22. 'django.contrib.sessions.middleware.SessionMiddleware',
  23. 'django.middleware.csrf.CsrfViewMiddleware',
  24. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  25. 'django.contrib.messages.middleware.MessageMiddleware')
  26.  
  27.  
  28. Template error:
  29. In template /home/rfkrocktk/Desktop/project/src/project/web/templates/foundation.html, error at line 1
  30. 'staticfiles' is not a valid tag library: Template library staticfiles not found, tried django.templatetags.staticfiles,django.contrib.admin.templatetags.staticfiles
  31. 1 : {% load staticfiles %}
  32.  
  33.  
  34. 2 : <html>
  35.  
  36.  
  37. 3 : <head>
  38.  
  39.  
  40. 4 : {% block stylesheets %}
  41.  
  42.  
  43. 5 : <link rel="stylesheet" href="{% static "styles/bootstrap-1.2.0.min.css" %}">
  44.  
  45.  
  46. 6 : {% endblock %}
  47.  
  48.  
  49. 7 : <title>{% block title %}Tzibor{% endblock %}</title>
  50.  
  51.  
  52. 8 : </head>
  53.  
  54.  
  55. 9 : <body>
  56.  
  57.  
  58. 10 : <h1>It Works!</h1>
  59.  
  60.  
  61. 11 : {% block scripts %}
  62.  
  63.  
  64. Traceback:
  65. File "/home/rfkrocktk/Desktop/project/eggs/Django-1.3-py2.7.egg/django/core/handlers/base.py" in get_response
  66. 111. response = callback(request, *callback_args, **callback_kwargs)
  67. File "/home/rfkrocktk/Desktop/project/src/project/web/views.py" in root
  68. 5. return direct_to_template(request, 'foundation.html', {})
  69. File "/home/rfkrocktk/Desktop/project/eggs/Django-1.3-py2.7.egg/django/views/generic/simple.py" in direct_to_template
  70. 27. t = loader.get_template(template)
  71. File "/home/rfkrocktk/Desktop/project/eggs/Django-1.3-py2.7.egg/django/template/loader.py" in get_template
  72. 157. template, origin = find_template(template_name)
  73. File "/home/rfkrocktk/Desktop/project/eggs/Django-1.3-py2.7.egg/django/template/loader.py" in find_template
  74. 134. source, display_name = loader(name, dirs)
  75. File "/home/rfkrocktk/Desktop/project/eggs/Django-1.3-py2.7.egg/django/template/loader.py" in __call__
  76. 42. return self.load_template(template_name, template_dirs)
  77. File "/home/rfkrocktk/Desktop/project/eggs/Django-1.3-py2.7.egg/django/template/loader.py" in load_template
  78. 48. template = get_template_from_string(source, origin, template_name)
  79. File "/home/rfkrocktk/Desktop/project/eggs/Django-1.3-py2.7.egg/django/template/loader.py" in get_template_from_string
  80. 168. return Template(source, origin, name)
  81. File "/home/rfkrocktk/Desktop/project/eggs/Django-1.3-py2.7.egg/django/template/base.py" in __init__
  82. 108. self.nodelist = compile_string(template_string, origin)
  83. File "/home/rfkrocktk/Desktop/project/eggs/Django-1.3-py2.7.egg/django/template/base.py" in compile_string
  84. 136. return parser.parse()
  85. File "/home/rfkrocktk/Desktop/project/eggs/Django-1.3-py2.7.egg/django/template/base.py" in parse
  86. 239. compiled_result = compile_func(self, token)
  87. File "/home/rfkrocktk/Desktop/project/eggs/Django-1.3-py2.7.egg/django/template/defaulttags.py" in load
  88. 1054. (taglib, e))
  89.  
  90. Exception Type: TemplateSyntaxError at /
  91. 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