Re: Django Caching and Browser Caching

2018-04-08 Thread Jason
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

Re: I'm trying to edit address form for Saleor ecommerce platform

2018-04-08 Thread Avraham Serour
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

Django Caching and Browser Caching

2018-04-08 Thread yingi keme
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

Re: Django Caching and Browser Caching

2018-04-08 Thread yingi keme
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

NoReverseMatch on template view with through model

2018-04-08 Thread toneldaclan
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':

Reverse not found

2018-04-08 Thread toneldaclan
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, }

Help: 'django.utils.six.moves' is not a package

2018-04-08 Thread Derek Zeng
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 =