Hi Syhpoon. the captcha should work fine, (it did the last time I tried it with the TRUNK, i've been focusing on other spots lately)
is it complaiing like this when you are fetching the image, or when you are generating the page with the fields, or when you post the data back to it? if you could email me your template (privately if you wish) I can try to reproduce it on my setup. Regards Ian. On 3/2/06, syhpoon <[EMAIL PROTECTED]> wrote: > > Hi, > I've tried django captcha > (http://feh.holsman.net/articles/2005/12/15/django-captcha-app) but got > strange behaviour: > With internal django web server everything works just fine, but I got a > really misterious error with apache 2.0.55 and mod_python 3.1.4 > on FreeBSD (sorry for a lot of quoting, I'm not really sure what's the > call that caused error): > Mod_python error: "PythonHandler django.core.handlers.modpython" > > Traceback (most recent call last): > > File "/usr/local/lib/python2.4/site-packages/mod_python/apache.py", > line 299, in HandlerDispatch > result = object(req) > > File > "/usr/local/lib/python2.4/site-packages/django/core/handlers/modpython.py", > line 169, in handler > return ModPythonHandler()(req) > > File > "/usr/local/lib/python2.4/site-packages/django/core/handlers/modpython.py", > line 143, in __call__ > response = self.get_response(req.uri, request) > > File > "/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py", > line 109, in get_response > return self.get_technical_error_response(request) > > File > "/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py", > line 139, in get_technical_error_response > return debug.technical_500_response(request, *sys.exc_info()) > > File "/usr/local/lib/python2.4/site-packages/django/views/debug.py", > line 126, in technical_500_response > return HttpResponseServerError(t.render(c), mimetype='text/html') > > File > "/usr/local/lib/python2.4/site-packages/django/core/template/__init__.py", > line 146, in render > return self.nodelist.render(context) > > File > "/usr/local/lib/python2.4/site-packages/django/core/template/__init__.py", > line 714, in render > bits.append(self.render_node(node, context)) > > File > "/usr/local/lib/python2.4/site-packages/django/core/template/__init__.py", > line 727, in render_node > return(node.render(context)) > > File > "/usr/local/lib/python2.4/site-packages/django/core/template/defaulttags.py", > line 112, in render > nodelist.append(node.render(context)) > > File > "/usr/local/lib/python2.4/site-packages/django/core/template/defaulttags.py", > line 174, in render > return self.nodelist_true.render(context) > > File > "/usr/local/lib/python2.4/site-packages/django/core/template/__init__.py", > line 714, in render > bits.append(self.render_node(node, context)) > > File > "/usr/local/lib/python2.4/site-packages/django/core/template/__init__.py", > line 727, in render_node > return(node.render(context)) > > File > "/usr/local/lib/python2.4/site-packages/django/core/template/defaulttags.py", > line 112, in render > nodelist.append(node.render(context)) > > File > "/usr/local/lib/python2.4/site-packages/django/core/template/__init__.py", > line 772, in render > output = self.filter_expression.resolve(context) > > File > "/usr/local/lib/python2.4/site-packages/django/core/template/__init__.py", > line 599, in resolve > obj = func(obj, *arg_vals) > > File > "/usr/local/lib/python2.4/site-packages/django/core/template/defaultfilters.py", > line 434, in pprint > return pformat(value) > > File "/usr/local/lib/python2.4/pprint.py", line 59, in pformat > return PrettyPrinter(indent=indent, width=width, > depth=depth).pformat(object) > > File "/usr/local/lib/python2.4/pprint.py", line 110, in pformat > self._format(object, sio, 0, 0, {}, 0) > > File "/usr/local/lib/python2.4/pprint.py", line 128, in _format > rep = self._repr(object, context, level - 1) > > File "/usr/local/lib/python2.4/pprint.py", line 194, in _repr > self._depth, level) > > File "/usr/local/lib/python2.4/pprint.py", line 206, in format > return _safe_repr(object, context, maxlevels, level) > > File "/usr/local/lib/python2.4/pprint.py", line 291, in _safe_repr > rep = repr(object) > > File "/usr/local/lib/python2.4/UserDict.py", line 162, in __repr__ > return repr(dict(self.iteritems())) > > File "/usr/local/lib/python2.4/UserDict.py", line 100, in iteritems > for k in self: > > File "/usr/local/lib/python2.4/UserDict.py", line 87, in __iter__ > for k in self.keys(): > > File "/usr/local/lib/python2.4/shelve.py", line 98, in keys > return self.dict.keys() > > AttributeError: DbfilenameShelf instance has no attribute 'dict' > > --- > It occurs only when I put {% load captcha %} {%captcha %} into > template, it works perfectly without though. > > Any ideas? > Thanks. > > > > -- [EMAIL PROTECTED] -- blog: http://feh.holsman.net/ -- PH: ++61-3-9877-0909 If everything seems under control, you're not going fast enough. - Mario Andretti --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---