Re: How to import DoesNotExist exception ???

2008-12-09 Thread Sérgio Durand
from tutorial part 03: from django.http import Http404 # ... def detail(request, poll_id): try: p = Poll.objects.get(pk=poll_id) except Poll.DoesNotExist: raise Http404 return render_to_response('polls/detail.html', {'poll': p}) ---

Re: ' Change History' for audit, compliance

2008-11-11 Thread Sérgio Durand
Hi, You can use AuditTrail[1] (i'm using now) or django-revision[2] (i'm planning use this). []'s Sergio Durand [1] http://code.djangoproject.com/wiki/AuditTrail [2] http://code.google.com/p/django-reversion/ Lincoln_Consulting escreveu: > Hello > > Every moden application needs 'Change Histo

Re: DeprecationWarning: Non-ASCII character in models.py

2008-09-30 Thread Sérgio Durand
Hi Nick, Insert the following code as first line of your models.py (and other .py files) # -*- coding: utf-8 -*- []'s Sergio Durand Nick escreveu: > Hi, > > I've recently noticed that I'm getting the following in my Apache > error log... > > DeprecationWarning: Non-ASCII character '\xc2' in f

Re: where is my pythonpath

2008-09-18 Thread Sérgio Durand
would be this you are looking for ? python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()" []'s Sergio Durand KillaBee escreveu: > I need to edit my pythonpath, but where it? > > > > --~--~-~--~~~---~--~~ You received this mess

Re: Problems getting manage.py syncdb to work

2008-09-18 Thread Sérgio Durand
hi, try to connect with postgres using psql utility: psql -h localhost -U -W if you don't have success login, the problem could be on postgres config. []'s Sergio Durand airjaw escreveu: > Hi, I'm having a bit of trouble getting past the "manage.py syncdb" > command. I am trying to setup :

Re: Audit Trail

2008-08-21 Thread Sérgio Durand
gt; > I updated my code with your changes, and it still doesn't seem to be > working. I don't have the history Manager in my model. > > Is it working for you? Are you using the latest trunk? > > Thanks! > Erik > > On Aug 19, 12:15 pm, Sérgio Durand <[EMAIL

Audit Trail

2008-08-19 Thread Sérgio Durand
Hi people, Finally i've got Audit Trail [1] working again !!! :) I'm not a django/python expert (i've started studying 2 months ago), but after fighting with "python manage.py validate" and searching in google, i've got the solution... the problem basically was missing **kwargs arguments in so