Hello all,

    I have something like this:

$( '#operators_list_div' ).html( ' ' ).load( '{% url
add_save_view %}',{'action':'action',});
$( '#address_list' ).html( ' ' ).load( '{% url add_save_view %}',
{'action':'address_list',});

In view I have like this, that don't work on:

#list of availible address for controller
    ca_list = []
    ca_available = []
    ca = klass.objects.all()
    for i in ca:
        ca_list.append(i.id)
    for i in range(1,255):
        if i not in ca_list:
            ca_available.append(i)
    env['add_avail'] = ca_available

First load add something in a table(klass modell). The second view
just pass to view and do the code abouve. I need to check the datas
from the table and make a list with availible id. If in first load add
an id 3, afther the second load, I don't need 3, in the env
['add_avail']. This work ok, when run on localhost with django seerver
(runserver), but, when I run project on other server, under apache2,
the list: env['add_avail'], is the same like in first load, even if
after the first load id is added. Somebody know what can be the
problem?

--

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