Browsers cache images, js and css, but not the actual data that's
rendered. In addition, browser caching only works for repeat visitors to
your site. Using server side caching complements browser side caching but
also works for first time visitors.
On Sunday, April 8, 2018 at 10:49:07 AM
You seem to have pasted a line from your template, not the error you are
getting, no way of helping you there.
Please post the actual error you are getting
On Sat, Apr 7, 2018 at 2:00 PM, ruslan.aldar wrote:
> hello.
> I'm trying to build an local merchant website. So I
I Have set up cache in my File System and I have used the following code to
cache my view
from django.views.decorators.cache import cache_page
@cache_page(60 * 15)
def myView(request):
#some code
What i want to know is that, How is this caching mechanism different from
the automatic
Thanks Jason
Yingi Kem
> On 8 Apr 2018, at 4:19 PM, Jason wrote:
>
> Browsers cache images, js and css, but not the actual data that's rendered.
> In addition, browser caching only works for repeat visitors to your site.
> Using server side caching complements
This code in my views.py works fine when it was still not in template format
def detail(request, entity_group_id):
entity_group = get_object_or_404(EntityGroup, pk=entity_group_id) # noqa
entity_list = entity_group.members.order_by('name')
context = {
'entity_group':
This code works well:
def detail(request, entity_group_id):
entity_group = get_object_or_404(EntityGroup, pk=entity_group_id) # noqa
entity_list = entity_group.members.order_by('name')
context = {
'entity_group': entity_group,
'entity_list': entity_list,
}
I got the following error when running pytest in django. Help is
appreciated.
This is the test I run
import pytest
from .factories import *
@pytest.mark.django_db
def test_with_client(client):
PostFactory.create() # if commented out, the error is gone
response = client.get('/')
body =
7 matches
Mail list logo