Excel Generating Report

2008-12-06 Thread garces.85
Hello, I need some urgent help. I have a function that generates a report in excel, the report returns the data that i need the problem es that i am getting some strange characters like: Í , ó, ñ, etc... I have tried with django smart_unicode and force_unicode but nothing happens. Is there i w

Re: Excel Generating Report

2008-12-09 Thread garces.85
Hello Kian, I have already tried this response, the problem is that in my excel output i get this strange characters. For example all my grammar words return like weird characters. Example : If i have this word : ( Módulo) It becomes something like this : (MA3- dulo). I am working with a latin

Re: Excel Generating Report

2008-12-09 Thread garces.85
Hello, This is my template(actually is only the part where the for cycle returns the results i need): {% for r in rendicion %} {{forloop.counter}} {{r.comuna.nom_comuna|upper}} {{r.comuna.region.nom_region}} {{

Re: Excel Generating Report

2008-12-09 Thread garces.85
Hello, Sorry thats not the real template, it's this one: {% for d in data %} {{ d.pregunta.id }} {{ d.pregunta.descripcion_pregunta}} {{ d.respuesta }} {{ d.pregunta.tipo_pregunta.nombre_tipo }}

Re: Excel Generating Report

2008-12-10 Thread garces.85
Hi, Problem solved, in my template i put the following: http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> And the following line before my the head tag: Now i get the result that i want, without any strange characters. Thanks! --~--~-~--~~~---~--~~ You re

Saving multiple variables using ModelForms

2008-09-18 Thread garces.85
Hello everyone, I am new in django and python programming. I have a problem, i want to save for each activity an amount of money that goes with an item. Example: i want to store the activity1 - $100 - item1, activity2 - $200 - item2, activity2 - $100 - item1. How can i use this please? Until now

factory ModelForms

2008-10-02 Thread garces.85
Hello am new in django, am in a worry here. I have the next question: i have a ModelForm that must display some choices depending on an id of region. I have done it when i am saving a new registration( it only shows me the choices of the region a am logged on) But when a want to edit the regions

Data view change

2009-05-21 Thread garces.85
Hello, I have i question, how can a change the data displayed in a template only when the user changes from one view to another, for example i have a template that displays some deleted users, but only the recent ones are marked by a different colour from the other, how can i handle that wuen the