Hi, maybe I'm doing something wrong (I'm just starting to learn Python and Django), I need to call a view (viaje) from another view in the same app but I get this error:

UnboundLocalError at /adm/viaj/
  local variable 'viaje' referenced before assignment

The relevant part of the code is

amxdev/contable/views.py
...

def viajes(request):
    if request.GET['numero'] != '':
       resp = viaje(request)
       return resp


def viaje(request, numero=None):
    ...
    return render_to_response(...)



Thanks for your help.


Facundo

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

begin:vcard
fn:Facundo Casco
n:Casco;Facundo
org:AMV Multiviajes Argentina S.R.L.
adr:Piso 12 Oficina 'G';;Esmeralda 847;Buenos Aires;CF;C1007ABI;Argentina
email;internet:[EMAIL PROTECTED]
tel;work:+54 11 5031-3060 / 3061
tel;fax:+54 11 4313-6141
url:http://www.multiviajesar.com.ar
version:2.1
end:vcard

Reply via email to