Re: schema evolution

2007-08-02 Thread Romo
Hello! I don't know if this is the right place to a little problem I have with this... I installed schema-evolution and everything seemed to be fine... when i try to run it with: python manage.py sqlevolve app_name (obviously app_name is not my app name :P) I get the following: BEGIN; Traceba

Ignore query on views?

2008-05-12 Thread RoMo
Hello guys! First of all I don't know if I'm asking the right question, but i'll try to explain myself the best I can: I would like to know if in a view there is a way that after a "try:" and evaluate the expression as false, it justs ignores that query and display a message error, but keep load

Re: Ignore query on views?

2008-05-12 Thread Romo
It works!! Thanks a lot for your help, Adi! cheers On May 12, 12:25 pm, Adi Jörg Sieker <[EMAIL PROTECTED]> wrote: > On 12.05.2008, at 18:57, RoMo wrote: > > > > > > > Hello guys! > > > First of all I don't know if I'm asking the right questi

Re: Ignore query on views?

2008-05-12 Thread RoMo
27; at row 1 On May 12, 12:40 pm, Romo <[EMAIL PROTECTED]> wrote: > It works!! > > Thanks a lot for your help, Adi! > > cheers > > On May 12, 12:25 pm, Adi Jörg Sieker <[EMAIL PROTECTED]> wrote: > > > On 12.05.2008, at 18:57, RoMo wrote: > > > >

Re: Ignore query on views?

2008-05-13 Thread Romo
perfect! with _set and a for i can do what i was looking for! thank you soo much! On May 13, 9:16 am, Adi Jörg Sieker <[EMAIL PROTECTED]> wrote: > On 13.05.2008, at 06:32, RoMo wrote: > > > > > I'm sorry for not understand what you were saying about the error with

Set booleanfield to True on shell?

2008-09-24 Thread Jorge Romo
Hello guys, maybe this is a kinda dumb question but i just can't figure it out! I have set to False as default for a is_finished field. If something is finished it should turn to True, but i just can't make it happen. Any idea? I tried with .objects.update but it updated all my model objects hah

Re: Set booleanfield to True on shell?

2008-09-24 Thread Jorge Romo
Woah it was so obvious! Thanks a lot Daniel! On Sep 24, 2:23 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Sep 24, 8:00 pm, Jorge Romo <[EMAIL PROTECTED]> wrote: > > > Hello guys, maybe this is a kinda dumb question but i just can't > > figure it out! &

Error while rendering comments

2008-10-08 Thread Jorge Romo
Hello, I have this issue: Caught an exception while rendering: Reverse for '' with arguments '()' and keyword arguments '{}' not found. The second line is what is causing me trouble: 1 {% load comments %} 2 3 {% for field in form %} 4 {% if field.is_hidden %} 5 {{

variables in forms.py?

2008-10-19 Thread Jorge Romo
Hell guys, I have this little doubt: I want to validate a form, but it has several different options. It has to take a value_a and the see if it is bigger, smaller or equal to another value_b. The issue (or maybe not :p) is that the value_b is entered by the user, so it is always different, it wo

Prepopulate form from URL?

2009-03-18 Thread Jorge Romo
Hello! I was trying to see if there's a way (I'm pretty sure there is a way) to prepopulate a form field from an url. For example: /foo?=bar and that in my form field "bar" is displayed. I have to work with java? there is another way? --~--~-~--~~~---~--~~ You rece

Re: Prepopulate form from URL?

2009-03-18 Thread Jorge Romo
Thank you so much to both of you! I was looking at the wrong documentation lol kudos! --~--~-~--~~~---~--~~ 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@googlegrou

Get just one object id at the time in view assignment issue.

2008-05-16 Thread Jorge Romo
Hello guys! I have another little (i'm sure it is) problem (i have like 3 days trying to resolve it by myself but i just gave up lol), i'm using django-tagging so I can tag some records, the problem here is that i don't know how to take one object, take its id and then keep the cycle. this is wha

Re: Get just one object id at the time in view assignment issue.

2008-05-16 Thread Jorge Romo
I feel I'm getting close to an answer... I hope you guys can help me out... I get this TypeError: Records() takes exactly 3 non-keyword arguments (2 given) def Records (request, UserName, Name): gamer = Artist.objects.get(UserName=UserName) record = Record.objects.get(Name=Name) tags

Adding database table to Selection Widget on newforms

2008-05-18 Thread Jorge Romo
Hello again guys! I'm using django-registration and i wanna use django-countries with it so i can ask my new user for its country. But i don't know how to call it... this is my django-registration country code: Country = forms.CharField(widget=forms.Select(attrs=attrs_dict, choices=()), labe

Re: Adding database table to Selection Widget on newforms

2008-05-19 Thread Jorge Romo
gt; > I hope this is correct and will help you. > > V > > [1]:http://www.djangoproject.com/documentation/newforms/#choicefield > > On May 19, 6:32 am, Jorge Romo <[EMAIL PROTECTED]> wrote: > > > Hello again guys! > > > I'm using django-registration an