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 <rennero...@gmail.com>
>
>>  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
>> <imad.elharou...@gmail.com> 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 <rennero...@gmail.com>
>> >>
>> >>  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
>> >> <imad.elharou...@gmail.com> 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<django-users%2bunsubscr...@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<django-users%2bunsubscr...@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<django-users%2bunsubscr...@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<django-users%2bunsubscr...@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<django-users%2bunsubscr...@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.

Reply via email to