This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Django import Error

By: a guest on May 30th, 2012  |  syntax: Python  |  size: 4.38 KB  |  views: 28  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Environment:
  2.  
  3.  
  4. Request Method: GET
  5. Request URL: http://*****.com:8000/
  6.  
  7. Django Version: 1.3.1
  8. Python Version: 2.7.1
  9. Installed Applications:
  10. ['django.contrib.auth',
  11.  'django.contrib.contenttypes',
  12.  'django.contrib.sessions',
  13.  'django.contrib.messages',
  14.  'django.contrib.comments',
  15.  'django.contrib.staticfiles',
  16.  'django.contrib.sites',
  17.  'django.contrib.humanize',
  18.  'grappelli',
  19.  'grappelli.dashboard',
  20.  'django.contrib.admin',
  21.  'south',
  22.  'django.contrib.flatpages',
  23.  'crispy_forms',
  24.  'gravatar',
  25.  'social_auth',
  26.  'registration',
  27.  'django_messages',
  28.  'pagination',
  29.  'storages',
  30.  'boto',
  31.  'basic.inlines',
  32.  'basic.blog',
  33.  'basic.media',
  34.  'tagging',
  35.  'django.contrib.markup',
  36.  'basic.tools',
  37.  'endless_pagination',
  38.  'profiles',
  39.  'crowd',
  40.  'medals',
  41.  'notifications',
  42.  'markdown_video']
  43. Installed Middleware:
  44. ('django.middleware.common.CommonMiddleware',
  45.  'django.contrib.sessions.middleware.SessionMiddleware',
  46.  'django.middleware.csrf.CsrfViewMiddleware',
  47.  'django.contrib.auth.middleware.AuthenticationMiddleware',
  48.  'django.contrib.messages.middleware.MessageMiddleware',
  49.  'pagination.middleware.PaginationMiddleware',
  50.  'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
  51.  'product.middleware.EulaForce')
  52.  
  53.  
  54. Template error:
  55. In template /Users/****/Documents/dev/product/src/Product/templates/index.html, error at line 2
  56.    'project_tags' is not a valid tag library: ImportError raised loading crowd.templatetags.project_tags: No module named models
  57.    1 : {% extends "base_site.html" %}
  58.  
  59.  
  60.    2 :  {% load project_tags medal_tags %}
  61.  
  62.  
  63.    3 : {% block title %}Product{% endblock %}
  64.  
  65.  
  66.    4 : {% block content %}
  67.  
  68.  
  69.    5 : {{ message }}
  70.  
  71.  
  72.    6 : <div>
  73.  
  74.  
  75.    7 :   <div class="row-fluid">
  76.  
  77.  
  78.    8 :     {% show_search_form %}
  79.  
  80.  
  81.    9 :   </div>
  82.  
  83.  
  84.    10 :   <div class="row-fluid">
  85.  
  86.  
  87.    11 :       <div class="span2">
  88.  
  89.  
  90.    12 :         {% show_category_list %}
  91.  
  92.  
  93. Traceback:
  94. File "/env/pfenv/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  95.   111.                         response = callback(request, *callback_args, **callback_kwargs)
  96. File "/Users/****/Documents/dev/product/src/Product/views/main.py" in index
  97.   42.                               context_instance=RequestContext(request))
  98. File "/env/pfenv/lib/python2.7/site-packages/django/shortcuts/__init__.py" in render_to_response
  99.   20.     return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
  100. File "/env/pfenv/lib/python2.7/site-packages/django/template/loader.py" in render_to_string
  101.   181.         t = get_template(template_name)
  102. File "/env/pfenv/lib/python2.7/site-packages/django/template/loader.py" in get_template
  103.   157.     template, origin = find_template(template_name)
  104. File "/env/pfenv/lib/python2.7/site-packages/django/template/loader.py" in find_template
  105.   134.             source, display_name = loader(name, dirs)
  106. File "/env/pfenv/lib/python2.7/site-packages/django/template/loader.py" in __call__
  107.   42.         return self.load_template(template_name, template_dirs)
  108. File "/env/pfenv/lib/python2.7/site-packages/django/template/loader.py" in load_template
  109.   48.             template = get_template_from_string(source, origin, template_name)
  110. File "/env/pfenv/lib/python2.7/site-packages/django/template/loader.py" in get_template_from_string
  111.   168.     return Template(source, origin, name)
  112. File "/env/pfenv/lib/python2.7/site-packages/django/template/base.py" in __init__
  113.   108.         self.nodelist = compile_string(template_string, origin)
  114. File "/env/pfenv/lib/python2.7/site-packages/django/template/base.py" in compile_string
  115.   136.     return parser.parse()
  116. File "/env/pfenv/lib/python2.7/site-packages/django/template/base.py" in parse
  117.   239.                     compiled_result = compile_func(self, token)
  118. File "/env/pfenv/lib/python2.7/site-packages/django/template/loader_tags.py" in do_extends
  119.   214.     nodelist = parser.parse()
  120. File "/env/pfenv/lib/python2.7/site-packages/django/template/base.py" in parse
  121.   239.                     compiled_result = compile_func(self, token)
  122. File "/env/pfenv/lib/python2.7/site-packages/django/template/defaulttags.py" in load
  123.   1054.                                           (taglib, e))
  124.  
  125. Exception Type: TemplateSyntaxError at /
  126. Exception Value: 'project_tags' is not a valid tag library: ImportError raised loading crowd.templatetags.project_tags: No module named models
clone this paste RAW Paste Data