Problem with inserting images
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 group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Dajax or Jquery
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 to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
javascript
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 email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: javascript
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 myJavaScriptFunction( pValue ) { > ... > } > > Tim. > > > 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 email to > > django-users+unsubscr...@googlegroups.com > . > > For more options, visit this group at > > http://groups.google.com/group/django-users?hl=en. > > > > > > > -- > 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 > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
how to refresh a template' part
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 email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
updating the template with objects sent by a server
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 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 email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
connect to database from template
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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: connect to database from template
I want to connect to a server and get a tree object regularily and show the modifications in the treeview do you know how can i do this? 2010/8/18 Renne Rocha > I believe not... but why are you trying to do this? > > It is not the right use for the template layer of Django... > > On Wed, Aug 18, 2010 at 10:53 AM, Imad Elharoussi > wrote: > > 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 > > django-users+unsubscr...@googlegroups.com > . > > For more options, visit this group at > > http://groups.google.com/group/django-users?hl=en. > > > > -- > 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 > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: connect to database from template
In my view.py I did this but I don't know how to make the connection to the server permanent 2010/8/18 Renne Rocha > You have to do a view that handle the action of getting the content > of the treeview... > > It seems you don't know how Django 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 > wrote: > > I want to connect to a server and get a tree object regularily and show > the > > modifications in the treeview > > do you know how can i do this? > > > > 2010/8/18 Renne Rocha > >> > >> I believe not... but why are you trying to do this? > >> > >> It is not the right use for the template layer of Django... > >> > >> On Wed, Aug 18, 2010 at 10:53 AM, Imad Elharoussi > >> wrote: > >> > 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 > >> > django-users+unsubscr...@googlegroups.com > . > >> > For more options, visit this group at > >> > http://groups.google.com/group/django-users?hl=en. > >> > > >> > >> -- > >> 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 > >> django-users+unsubscr...@googlegroups.com > . > >> For more options, visit this group at > >> http://groups.google.com/group/django-users?hl=en. > >> > > > > -- > > 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 > > django-users+unsubscr...@googlegroups.com > . > > For more options, visit this group at > > http://groups.google.com/group/django-users?hl=en. > > > > -- > 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 > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
django and php
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 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: connect to database from template
thank you for your help but I find a solution I'm using jquery to connect to a server 2010/8/19 Mathieu Leduc-Hamel > You have to forget the php when you code something in Python and Django. > > The process doesn't fallow the same way it does in PHP. > > 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...@gmail.com> wrote: > >> In my view.py I did this but I don't know how to make the connection to >> the server permanent >> >> >> 2010/8/18 Renne Rocha >> >>> You have to do a view that handle the action of getting the content >>> of the treeview... >>> >>> It seems you don't know how Django 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 >>> wrote: >>> > I want to connect to a server and get a tree object regularily and show >>> the >>> > modifications in the treeview >>> > do you know how can i do this? >>> > >>> > 2010/8/18 Renne Rocha >>> >> >>> >> I believe not... but why are you trying to do this? >>> >> >>> >> It is not the right use for the template layer of Django... >>> >> >>> >> On Wed, Aug 18, 2010 at 10:53 AM, Imad Elharoussi >>> >> wrote: >>> >> > 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 >>> >> > django-users+unsubscr...@googlegroups.com >>> . >>> >>> >> > For more options, visit this group at >>> >> > http://groups.google.com/group/django-users?hl=en. >>> >> > >>> >> >>> >> -- >>> >>> >> 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 >>> >> django-users+unsubscr...@googlegroups.com >>> . >>> >>> >> For more options, visit this group at >>> >> http://groups.google.com/group/django-users?hl=en. >>> >> >>> > >>> > -- >>> >>> > 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 >>> > django-users+unsubscr...@googlegroups.com >>> . >>> >>> > For more options, visit this group at >>> > http://groups.google.com/group/django-users?hl=en. >>> > >>> >>> -- >>> 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 >>> django-users+unsubscr...@googlegroups.com >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/django-users?hl=en. >>> >>> >> -- >> 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 >> django-users+unsubscr...@googlegroups.com >> . >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> > > -- > 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 > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
return json format
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 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: return json format
It's not the case for me !!! 2010/8/20 Emily Rodgers > On Aug 20, 10:01 am, Imad Elharoussi > wrote: > > 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 > > That is what I do and it works. > > -- > 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 > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: return json format
I got readystate = 4 but status = 500 2010/8/20 Emily Rodgers > What goes wrong? > > On Aug 20, 10:34 am, Imad Elharoussi > wrote: > > It's not the case for me !!! > > > > 2010/8/20 Emily Rodgers > > > > > On Aug 20, 10:01 am, Imad Elharoussi > > > wrote: > > > > 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 > > > > > That is what I do and it works. > > > > > -- > > > 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 > > > django-users+unsubscr...@googlegroups.com > > > > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/django-users?hl=en. > > -- > 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 > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
javascript
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 += " Play "; I tried also this: tableau += " Play "; } please help 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 email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
regular expressions
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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: regular expressions
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 whether that whitespace may appear anywhere in the > string or only in a certain location, or after (or before) some other > matched pattern. > > Examples: > > [\w\s]+ will match "word" and/or whitespace, mixed. > > \w+[\w\s]+ will match word and/or whitespace mixed, but must be > preceded by "word" characters. > > \w+\s+\d+ will match "word" characters followed by whitespace followed > by one or more digits. > > Have a look at the regex syntax here: > http://docs.python.org/library/re.html > > Regular expressions are intimidating at first, but once you're > familiar with the meaning of the most commonly-used characters (*, +, > \w, \s, \d, ., {}) then you're most of the way there. > > Shawn > > -- > 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 > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.