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})
---
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
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
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
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 :
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
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
7 matches
Mail list logo