django-lfs "No module named appconf" - django

I have a problem after installing django-lfs
'compress' is not a valid tag library: ImportError raised loading compressor.templatetags.compress: No module named appconf
Request Method: GET
Request URL:
Django Version: 1.3.1
Exception Type: TemplateSyntaxError
Exception Value:
'compress' is not a valid tag library: ImportError raised loading compressor.templatetags.compress: No module named appconf
Exception Location: /usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py in load, line 1054
Python Executable: /usr/bin/python
Python Version: 2.7.5
http://dpaste.com/1653897/
how to fix it??

Have you tried installing django-appconf?

Related

Error in testing part of my django poll app

I get the following error in my django poll app. I do not understand what it states, can anyone suggest me what to do? Any solution to this?
NameError at / name 'model' is not defined
Request Method: GET Request URL: http://127.0.0.1:8000/
Django Version: 1.8.6
Exception Type: NameError
Exception Value: name 'model' is not defined
Exception Location: c:\Anaconda-installation\mysite\polls\views.py in ResultView, line 26
Python Executable: C:\Anaconda-installation\python.exe
Python Version: 2.7.10
Python Path: ['c:\\Anaconda-installation\\mysite',
'C:\\Anaconda-installation\\python27.zip',
'C:\\Anaconda-installation\\DLLs',
'C:\\Anaconda-installation\\lib',
'C:\\Anaconda-installation\\lib\\plat-win',
'C:\\Anaconda-installation\\lib\\lib-tk',
'C:\\Anaconda-installation',
'c:\\anaconda-installation\\lib\\site-packages\\sphinx-1.3.1-py2.7.egg',
'c:\\anaconda-installation\\lib\\site-packages\\setuptools-17.1.1-py2.7.egg',
'C:\\Anaconda-installation\\lib\\site-packages',
'C:\\Anaconda-installation\\lib\\site-packages\\cryptography-0.9.1-py2.7-win-amd64.egg',
'C:\\Anaconda-installation\\lib\\site-packages\\win32',
'C:\\Anaconda-installation\\lib\\site-packages\\win32\\lib',
'C:\\Anaconda-installation\\lib\\site-packages\\Pythonwin']
Server time: Tue, 8 Dec 2015 04:49:21 +0000

Django error xhtml2pdf

I am trying to generate a pdf with xhtml2pdf using a helper called django-xhtml2pdf but I am getting an error about the library xhtml2pdf. can you help me?
This is the error. thanks
SyntaxError at /
invalid syntax (util.py, line 302)
Request Method: GET
Request URL: http://localhost:8000/
Django Version: 1.7.7
Exception Type: SyntaxError
Exception Value:
invalid syntax (util.py, line 302)
Exception Location: /usr/lib/python3.4/site-packages/xhtml2pdf/__init__.py in <module>, line 41
Python Executable: /usr/bin/python
Python Version: 3.4.3
Python Path:
['/home/ed/syscat',
'/usr/lib/python34.zip',
'/usr/lib/python3.4',
'/usr/lib/python3.4/plat-linux',
'/usr/lib/python3.4/lib-dynload',
'/usr/lib/python3.4/site-packages']

Error importing django-templated-mail

I'm trying to install a module so I can get my app to send emails, so I installed in my app https://github.com/bradwhittington/django-templated-email, but, even I've followed all instructions, I'm getting this error message:
ImportError at /
cannot import name send_templated_mail
Request Method: GET
Request URL: http://127.0.0.1:8000/
Django Version: 1.4
Exception Type: ImportError
Exception Value:
cannot import name send_templated_mail
Exception Location: /Users/user/Dropbox/proyect/my-app/quizzer/views.py in <module>, line 32
Python Executable: /usr/bin/python
Python Version: 2.7.1
Python Path:
['/Users/user/Dropbox/proyect/my-app/quizzer/',
'/Library/Python/2.7/site-packages/pip-1.0-py2.7.egg',
'/Users/user/Dropbox/proyect/my-app/quizzer/quizzer/src/greatape/src',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC',
'/Library/Python/2.7/site-packages',
'/Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg-info']
Any ideas?
EDIT:
from templated_email import send_templated_mail
send_templated_mail(
template_name='tempname',
from_email='******#gmail.com',
recipient_list=['****#gmail.com'],
context={
'username':u.username,
'date':datetime.date.today(),
},
)

TemplateSyntaxError at / 'avatar_tags' is not a valid tag library

One django project code works well in my friend's PC, while failed in mine with the following error. virturalenv is setup successfully, and I can find avatar-tags.py under
[virtualenv-folder]/lib/python2.7/site-packages/avatar/templatetags. Does anyone know what's reason on this? Thanks a lot.
TemplateSyntaxError at /
'avatar_tags' is not a valid tag library: Template library avatar_tags not found, tried django.templatetags.avatar_tags,django.contrib.admin.templatetags.avatar_tags,django.contrib.humanize.templatetags.avatar_tags,pinax.templatetags.templatetags.avatar_tags,pinax_theme_bootstrap.templatetags.avatar_tags,staticfiles.templatetags.avatar_tags,compressor.templatetags.avatar_tags,timezones.templatetags.avatar_tags,announcements.templatetags.avatar_tags,pagination.templatetags.avatar_tags,idios.templatetags.avatar_tags,metron.templatetags.avatar_tags,django_extensions.templatetags.avatar_tags,tagging.templatetags.avatar_tags,account.templatetags.avatar_tags
Request Method: GET
Request URL: http://127.0.0.1:8000/
Django Version: 1.3.1
Exception Type: TemplateSyntaxError
Exception Value:
'avatar_tags' is not a valid tag library: Template library avatar_tags not found, tried django.templatetags.avatar_tags,django.contrib.admin.templatetags.avatar_tags,django.contrib.humanize.templatetags.avatar_tags,pinax.templatetags.templatetags.avatar_tags,pinax_theme_bootstrap.templatetags.avatar_tags,staticfiles.templatetags.avatar_tags,compressor.templatetags.avatar_tags,timezones.templatetags.avatar_tags,announcements.templatetags.avatar_tags,pagination.templatetags.avatar_tags,idios.templatetags.avatar_tags,metron.templatetags.avatar_tags,django_extensions.templatetags.avatar_tags,tagging.templatetags.avatar_tags,account.templatetags.avatar_tags
Exception Location: /Library/Python/2.7/site-packages/django/template/defaulttags.py in load, line 1054
Python Executable: /Users/Yandongqiao/Documents/memor_code/memor-env/bin/python
Python Version: 2.7.1
It looks like the avatar app is not in your INSTALLED_APPS setting--note that avatar.templatetags.avatar_tags does not appear in the template tag search path.

No module named blog.urls

Recently found a django's blog
Install to own computer later
Run up appear this kind of mistake, how to solve?
No module named blog.urlsRequest Method: GET
Request URL: http://127.0.0.1:8000/
Django Version: 1.2.4
Exception Type: ImportError
Exception Value: No module named blog.urls
Exception Location: C:\Python25\Lib\site-packages\django\utils\importlib.py in import_module, line 35
Python Executable: C:\Python25\python.exe
Python Version: 2.5.1
Python Path: ['E:\\source\\DjangoBlog\\DjangoBlog', 'C:\\Python25\\lib\\site-packages\\setuptools-0.6c7-py2.5.egg', 'C:\\Python25\\lib\\site-packages\\simplejson-2.0.9-py2.5.egg', 'E:\\source\\DjangoBlog\\DjangoBlog\\src', 'C:\\Python25', 'C:\\Python25\\DLLs', 'C:\\Python25\\lib', 'C:\\Python25\\lib\\lib-tk', 'C:\\Python25\\lib\\plat-win', 'C:\\Python25\\lib\\site-packages', 'C:\\WINDOWS\\system32\\python25.zip', 'D:\\ecliipse\\eclipse-java-helios-SR1-win32\\eclipse\\plugins\\org.python.pydev_1.6.3.2010100513\\PySrc', 'C:\\Python25\\lib\\site-packages\\PIL']
Server time: Fri, 25 Feb 2011 15:36:58 +0800
According to Python Path E:\source\DjangoBlog\DjangoBlog - DjangoBlog is directory where your project placed? Is where blog directory inside? if not try rename project directory to 'blog'