Could I succeeded Mysql-python install ?

2013-03-25 Thread snow leung
Easy to know if successed, Try this at python: Import MySqlDb Mind the upper yourself.have fun! -- 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 to django-users+uns

Could I succeeded Mysql-python install ?

2013-03-25 Thread snow leung
Easy to know if successed, Try this at python: Import MySqlDb Mind the upper yourself.have fun! -- 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 to django-users+uns

Could I succeeded Mysql-python install ?

2013-03-25 Thread snow leung
Easy to know if successed, Try this at python: Import MySqlDb Mind the upper yourself.have fun! -- 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 to django-users+uns

how to lookup dictionary in filter return?

2012-01-27 Thread snow leung
my filter return dictionary like this: {{ somevalue | dic_filter }} but when i try this {%for itm in somevalue | dic_filter %} {{itm}} {%endfor %} it only print the key how can i get the value with this ? thx! -- You received this message because you are subscribed to the Google Groups

Re: One To One relationship with a generic relation?

2012-01-27 Thread snow leung
no way On 1月15日, 上午9时15分, Stodge wrote: > I've used generic relations and they worked, but in one particular > case I need a one-to-one generic relation. Is this possible? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: what is django.db.models.Q for?

2012-01-27 Thread snow leung
thanks ,helpful On 1月11日, 上午10时38分, Eugene Wee wrote: > Hi, > > On Wed, Jan 11, 2012 at 10:27 AM, Yekui Wen wrote: > > can you guys tell me what is the Q method for ? > > Yes, though they are Q objects, not methods. Refer > to:https://docs.djangoproject.com/en/1.3/topics/db/queries/#complex-loo

Re: language="JavaScript" solves onload in chrome

2012-01-27 Thread snow leung
how about in firefox ? if the same that we can do anything about this. if not you can u jquery method $(function(){ //do your initrail or other. }) jquery method was not like body onload. On 1月10日, 上午11时34分, Charles Cossé wrote: > Hello, > > Just writing to share a revelation -- that using:

Re: /?next= not redirect user

2012-01-27 Thread snow leung
first: use in your html template. second: you can do it in your login method: def login(request): if reqeust.GET: #do something u want. return render_to_response('your html template', {next_url:request.GET.get('next',None)}) if request.POST: if login():