Re: where is the error ?? dictionary update sequence element #0 has length 1; 2 is required

2008-10-24 Thread Net_Boy
Thank you for your help ,, --~--~-~--~~~---~--~~ 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

Re: where is the error ?? dictionary update sequence element #0 has length 1; 2 is required

2008-10-24 Thread Net_Boy
I change it to : (r'^auction/(?P\d+)/bid_history/$', 'assignment3.auction.views.bid_history' , 'bid_history'), but I get error msg: Caught an exception while rendering: Reverse for 'assignment3.bid_history' with arguments '(2,)' and keyword arguments '{}' not found. it should say 'assignmen

Re: where is the error ?? dictionary update sequence element #0 has length 1; 2 is required

2008-10-24 Thread Net_Boy
it is an honor to get a reply from you sir , I saw your presentation in DjangoCon 2008 and I loved it :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

where is the error ?? dictionary update sequence element #0 has length 1; 2 is required

2008-10-24 Thread Net_Boy
I made a function for the bid_history and when I click on the Bid link in the item's details it gets the id of the item and got to the views.bidd_history it shows me an error : dictionary update sequence element #0 has length 1; 2 is required Why? --- views.py: def bid_history(req

second post:Please answer!How to compare from two models in the same function (view)?

2008-10-22 Thread Net_Boy
Hi, I am trying to make a view function to get the posted values and make some comparison (if x.value >= y.value).. where x is the model that I got it's values from the post and y is the other model . example: def comp(request): form = ItemForm() if request.method=="POST": for

Re: comparing from two models in the same function (view) ?

2008-10-21 Thread Net_Boy
def comp(request): form = ItemForm() if request.method=="POST": form = ItemForm(request.POST, request.FILES) if form.is_valid(): if item.price >= old.price and item.pub_date <= old.pub_date item = form.save(commit=False) item.seller = request.u

comparing from two models in the same function (view) ?

2008-10-21 Thread Net_Boy
Hi, I am trying to make a view function to get the posted values and make some comparison (if x.value >= y.value).. where x is the model that I got it's values from the post and y is the other model . so if anyone know how to do that I would be grateful :) regards.. --~--~-~--~

How to send emails when after an event happened?

2008-10-18 Thread Net_Boy
Hi, I am doing a new project and (doing a function that checks for a specific event, if it happened then the system should send email to the user? so how can I do that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G