Hi,

This is the view

def taxes(request):

    taxes = Tax.objects.all()
    return render (request, ‘app/taxes.html',
                    {"data":taxes})


> On 18 May 2017, at 3:19 PM, Antonis Christofides 
> <anto...@djangodeployment.com> wrote:
> 
> Hi,
> 
> it's hard to tell without more information. It could be a caching issue, if 
> you are using a cache. If possible, please show us the code of the view that 
> is causing the error (if it's not too long).
> 
> Regards,
> 
> A.
> Antonis Christofides
> http://djangodeployment.com <http://djangodeployment.com/>
> On 2017-05-18 11:41, gkleanthous.mob wrote:
>> Hi
>> 
>> I have a page which shows a list of records from a model. I have an “add 
>> new” link which opens a form. User fill the form and clicks save. Then an 
>> ajax call is done and the new record is saved to the database.
>> 
>> When i visit back the page with the list i do not see the new record, 
>> although it is saved in the database. I have to stop the server and restart 
>> it in order to see the new records.
>> 
>> 
>> Why is this happening?
>> 
>> 
>> Please advise.
>> 
>> Thanks
>> -- 
>> 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+unsubscr...@googlegroups.com 
>> <mailto:django-users+unsubscr...@googlegroups.com>.
>> To post to this group, send email to django-users@googlegroups.com 
>> <mailto:django-users@googlegroups.com>.
>> Visit this group at https://groups.google.com/group/django-users 
>> <https://groups.google.com/group/django-users>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/a8e40b18-2cec-4efc-8b12-a2d788161ee8%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/a8e40b18-2cec-4efc-8b12-a2d788161ee8%40googlegroups.com?utm_medium=email&utm_source=footer>.
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.com/d/optout>.
> 
> 
> -- 
> 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+unsubscr...@googlegroups.com 
> <mailto:django-users+unsubscr...@googlegroups.com>.
> To post to this group, send email to django-users@googlegroups.com 
> <mailto:django-users@googlegroups.com>.
> Visit this group at https://groups.google.com/group/django-users 
> <https://groups.google.com/group/django-users>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/0f5eb0cf-f4ba-5044-06cd-a8bab97f0dba%40djangodeployment.com
>  
> <https://groups.google.com/d/msgid/django-users/0f5eb0cf-f4ba-5044-06cd-a8bab97f0dba%40djangodeployment.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/A309CA2C-C770-42FE-86C9-52BEA0CE4C60%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to