Re: sorl.thumbnail on apache2
Thank you Sam. Suddenly it starts working by itself after restarting the server without making any changes :| On Jan 1, 10:01 am, Sam Laiwrote: > Are you missing a path in PythonPath, in your apache's conf file? Not > sure if the python path is returned in Django's error page; if not, > create a new view that returns the python path *as seen when launched > from apache* and see if it is correct there. > > 2009/12/30 Osiaq : > > > INDEX.HTML: > > error message: 'thumbnail' is not a valid tag library: Could not load > > template library from django.templatetags.thumbnail, cannot import > > name defaults > > > 1 {% extends 'website/base_website.html' %} > > 2 {% load thumbnail %} <--PROBLEM HERE > > > on development server using 'python manage.py runserver' is working > > perfect > > the same machine using apache2 + mod-python fails > > > thumbnail location: /home/osiaq/djangoprojects/myproject/sorl/ > > thumbnail > > python path: ['/home/osiaq/djangoprojects/myproject/sorl/', '/home/ > > osiaq/djangoprojects/', '/home/osiaq/djangoprojects/ > > myproject',...] > > > PYTHON: > import PIL <--OK, no errors > import sorl <--OK, no errors > > > SETTINGS.PY: > > INSTALLED_APPS = ( > > 'sorl.thumbnail', (using myproject.sorl.thumbnail also doesnt > > work) > > ...) > > > Help, please. > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To post to this group, send email to django-us...@googlegroups.com. > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: sorl.thumbnail on apache2
Are you missing a path in PythonPath, in your apache's conf file? Not sure if the python path is returned in Django's error page; if not, create a new view that returns the python path *as seen when launched from apache* and see if it is correct there. 2009/12/30 Osiaq: > INDEX.HTML: > error message: 'thumbnail' is not a valid tag library: Could not load > template library from django.templatetags.thumbnail, cannot import > name defaults > > 1 {% extends 'website/base_website.html' %} > 2 {% load thumbnail %} <--PROBLEM HERE > > on development server using 'python manage.py runserver' is working > perfect > the same machine using apache2 + mod-python fails > > thumbnail location: /home/osiaq/djangoprojects/myproject/sorl/ > thumbnail > python path: ['/home/osiaq/djangoprojects/myproject/sorl/', '/home/ > osiaq/djangoprojects/', '/home/osiaq/djangoprojects/ > myproject',...] > > PYTHON: import PIL <--OK, no errors import sorl <--OK, no errors > > SETTINGS.PY: > INSTALLED_APPS = ( > 'sorl.thumbnail', (using myproject.sorl.thumbnail also doesnt > work) > ...) > > Help, please. > > -- > > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
sorl.thumbnail on apache2
INDEX.HTML: error message: 'thumbnail' is not a valid tag library: Could not load template library from django.templatetags.thumbnail, cannot import name defaults 1 {% extends 'website/base_website.html' %} 2 {% load thumbnail %} <--PROBLEM HERE on development server using 'python manage.py runserver' is working perfect the same machine using apache2 + mod-python fails thumbnail location: /home/osiaq/djangoprojects/myproject/sorl/ thumbnail python path: ['/home/osiaq/djangoprojects/myproject/sorl/', '/home/ osiaq/djangoprojects/', '/home/osiaq/djangoprojects/ myproject',...] PYTHON: >>>import PIL <--OK, no errors >>>import sorl <--OK, no errors SETTINGS.PY: INSTALLED_APPS = ( 'sorl.thumbnail', (using myproject.sorl.thumbnail also doesnt work) ...) Help, please. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.