'SafeText' object has no attribute 'status_code'

2013-06-20 Thread cha
Hello I have problem with render_to_string django it's showme this error message : 'SafeText' object has no attribute 'status_code' my view : def html(request): context = {'inf': Itype.objects.all()} return render_to_string('smg/owl.html',context) -- You received this message because yo

Re: How to use lxml with django

2013-06-19 Thread cha
waiting for you On Wednesday, 19 June 2013 16:24:07 UTC-4, ovnicraft wrote: > > Hello, > > On Wed, Jun 19, 2013 at 3:09 PM, cha >wrote: > >> how generate xml or dme file django >> I want the result be like this : >> >> asfa Adnan >>

Re: How to use lxml with django

2013-06-19 Thread cha
Please Can Give Me Simple Example For View in Django On Wednesday, 19 June 2013 16:24:07 UTC-4, ovnicraft wrote: > > Hello, > > On Wed, Jun 19, 2013 at 3:09 PM, cha >wrote: > >> how generate xml or dme file django >> I want the result be like this : >>

How to use lxml with django

2013-06-19 Thread cha
how generate xml or dme file django I want the result be like this : asfa Adnan Company asfa Adnan Company Model for asfa Adnan Alaaadnan Company -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsu

Re: What is Model Manager?

2013-04-17 Thread cha
Thanks for the clarification On Wednesday, 17 April 2013 20:24:57 UTC-4, Lachlan Musicman wrote: > > On 18 April 2013 10:10, cha > wrote: > > Hello how are you > > Great, thanks for asking! > > > I want to explain to me what is **"Model Managers"**

Re: What is Model Manager?

2013-04-17 Thread cha
Thank you On Wednesday, 17 April 2013 20:26:31 UTC-4, Shawn Milochik wrote: > > https://docs.djangoproject.com/en/1.5/topics/db/managers/ > > This should explain everything. > > > On Wed, Apr 17, 2013 at 8:10 PM, cha >wrote: > >> Hello how are you >> I

What is Model Manager?

2013-04-17 Thread cha
Hello how are you I want to explain to me what is **"*Model Managers*"** in django ??? and What are the useful ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email t

imagefiled don't Work

2012-01-20 Thread cha
Hello I reading this tutorial https://pype.its.utexas.edu/docs/tutorial/unit6.html#answers it's work OK But When I want improve it and add ImageField in Category Model i have problem with ImageField It's Not uploaded file = models.ImageField(upload_to='img/%Y') see code please : _ views.py

Re: two views in one url

2011-09-11 Thread cha
thank you very much Babatunde Akinyanmi & petey Im merge the code and its work Mr Babatunde Akinyanmi acutely I need be comfortable with programming with python But I dont Know How to do that can you help me and give me the best way to be comfortable and professional programmer -- You received t

two views in one url

2011-09-11 Thread cha
Hello all I have two views in two app and I want to get them in main url file how I Can do that ? first view in project/app_news/views.py def article_index(request): return render_to_response('news/index.html', { 'news_slide': Article.objects.filter(status=1, statusslide=1)[:

Re: I want Develop django poll app tuturial

2011-04-01 Thread cha
thank you very much mr-gladys for this effort this is view def results(request, poll_id): p = get_object_or_404(Poll, pk=poll_id) choices = p.choice_set.all() total_poll_votes = sum(c.votes for c in choices) percentage = {} for choice in choices: vote = choice.votes

Re: I want Develop django poll app tuturial

2011-04-01 Thread cha
ok .. i know it's the amount of votes for option how can I get it in python -- 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 djang

Re: I want Develop django poll app tuturial

2011-04-01 Thread cha
Im waiting -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit thi

Re: I want Develop django poll app tuturial

2011-03-31 Thread cha
thanx I have Reached the following total_poll_votes = sum(c.votes for c in p.choice_set.all()) poll_votes = ?? vote_percentage = (poll_votes/total_poll_votes)*100 i just need poll_votes -- You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: I want Develop django poll app tuturial

2011-03-30 Thread cha
ok in beginning how i can get percentage for each vote ? this result code def results(request, poll_id): p = get_object_or_404(Poll, pk=poll_id) return render_to_response('polls/results.html', {'poll': p}) -- You received this message because you are subscribed to the Google Groups

I want Develop django poll app tuturial

2011-03-28 Thread cha
Hello I Written the Poll Applicattion From the tuturial in django offical website But How i can Develope It ? I want add bar graph for result and need calculate percentages for vote -- You received this message because you are subscribed to the Google Groups "Django users" group. To pos