Re: regular expressions

2010-09-14 Thread Imad Elharoussi
thank you I have two paramaters in my url how do I write the request function in my views.py: is it like this: def function(request, parameter1, parameter2)?? 2010/9/14 Shawn Milochik > It depends on whether it can contain whitespace or must contain > whitespace, and

regular expressions

2010-09-14 Thread Imad Elharoussi
How do we make reference to a string that can contain a whitespace in the urls.py -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

javascript

2010-09-08 Thread Imad Elharoussi
Hi I'm sorry to post this question which is related to javascript because I don't get early response from javascript forum I don't know how to pass parameters to a function which is called when I click I tried this but it doesn't work function details(id_application, id_server) { tableau

Re: return json format

2010-08-20 Thread Imad Elharoussi
I got readystate = 4 but status = 500 2010/8/20 Emily Rodgers <emily.kate.rodg...@gmail.com> > What goes wrong? > > On Aug 20, 10:34 am, Imad Elharoussi <imad.elharou...@gmail.com> > wrote: > > It's not the case for me !!! > > > > 2010/8/20 E

Re: return json format

2010-08-20 Thread Imad Elharoussi
It's not the case for me !!! 2010/8/20 Emily Rodgers <emily.kate.rodg...@gmail.com> > On Aug 20, 10:01 am, Imad Elharoussi <imad.elharou...@gmail.com> > wrote: > > Hello > > > > How can we return an object in a json format? > > > > it is like thi

return json format

2010-08-20 Thread Imad Elharoussi
Hello How can we return an object in a json format? it is like this : return HttpResponse(simplejson.dumps(ihmAgentRoot), mimetype='application/json') or do we need an other thing? thank you -- You received this message because you are subscribed to the

Re: connect to database from template

2010-08-19 Thread Imad Elharoussi
gt; It's complete new world (and a more beautiful and peaceful one i think). > > Your connection will be keep alive, don't worry about that. What do you > mean by connection ? The connexion to the database ? > > On Thu, Aug 19, 2010 at 10:30 AM, Imad Elharoussi < > imad.elharou...@

django and php

2010-08-19 Thread Imad Elharoussi
You said that we must not think in a PHP way while using django can you please give me a solution to my problem I have to connect every minute to a server and get an object from it an show the modifications can you please tell me what django give as solution to this thank you -- You

Re: connect to database from template

2010-08-19 Thread Imad Elharoussi
works. Take a look at the > tutorial first. Don't code Django like you code PHP... > > On Wed, Aug 18, 2010 at 11:01 AM, Imad Elharoussi > <imad.elharou...@gmail.com> wrote: > > I want to connect to a server and get a tree object regularily and show > the > > modific

Re: connect to database from template

2010-08-18 Thread Imad Elharoussi
template layer of Django... > > On Wed, Aug 18, 2010 at 10:53 AM, Imad Elharoussi > <imad.elharou...@gmail.com> wrote: > > Hello > > > > Can we connect to a database from the template like in php? > > > > -- > > You received this message becaus

connect to database from template

2010-08-18 Thread Imad Elharoussi
Hello Can we connect to a database from the template like in php? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

updating the template with objects sent by a server

2010-08-18 Thread Imad Elharoussi
Hello In my view.py I connect to a server and get an object and in my templates I display this object in a treeview form But I have to get all the time the modifications on that object from the server and show the modifications on the template Please do you have an idea how to do that? thank

how to refresh a template' part

2010-08-16 Thread Imad Elharoussi
Hello In my view.py I make connection with a distant server and i have to get an object from it every minute how can I do that without refreshing all the page thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: javascript

2010-08-13 Thread Imad Elharoussi
I mean can we make operations to the DjangoTemplateVariable in the javascript function for example: function myJavaScriptFunction( pValue ) { {{pValue.getName}} ... } 2010/8/13 Tim Sawyer > Yes > > myJavaScriptFunction( {{DjangoTemplateVariable}} ); > > function

javascript

2010-08-13 Thread Imad Elharoussi
Hi Is it possible to give a javascript function a django variable as a parameter? thank you -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send

Dajax or Jquery

2010-07-12 Thread Imad Elharoussi
Hi, I want to know what's the best plugin of Ajax to use with django Dajax or Jquery (for someone who just began in developping with such technologies) Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Problem with inserting images

2010-07-07 Thread Imad Elharoussi
Hi, I'm a begginer with django. I had a probleme inserting an image I did this in the template: the image is inthe same directory but at the output there is no image please help -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this