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
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
>>
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 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
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"**
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
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
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
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
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)[:
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
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
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
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
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
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
16 matches
Mail list logo