1) You hit Ctrl+R or otherwise refresh the page in the browser, and it still
shows the old data?
2) How do you know the new record is in the database?
3) What is your RDBMS?
4) Are you using any cache middleware?
Antonis Christofides
http://djangodeployment.com
On 2017-05-18 16:08, George Klea
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
> wrote:
>
> Hi,
>
> it's hard to tell without more information. It could be a caching
You most likely have a variable as a rest of query that's defined at module
level. Something like:
records = models.Record.objects.all()
def my_view(request):
...
You need to put your variables inside views if you want them fresh every view.
Otherwise Django will fetch it when you start th
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
On 2017-05-18 11:41, gkleanthou
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
5 matches
Mail list logo