A
Size: a a a
A
S
АВ
class WorksIDSitemap(Sitemap):
'''Карта сайта всех наших работ'''
protocol = 'https'
changefreq = 'monthly'
priority = 0.5
def items(self):
part = Partitions.objects.get(url = reverse('works'))
catalogs = part.catalog.all()
cat_id = []
for cat in catalogs:
cat_id.append(cat.pk)
objs = PhotoObject.objects.filter(catalog__in=cat_id)
return objs
def location(self, item):
return '{0}{1}'.format(reverse('works'), item.pk)
V
Sender
, который шлет письмаclass Sender:
def __init__(self, subject, user, template, context, from_email=settings.DEFAULT_FROM_EMAIL, **kwargs):
self.user = user
self.config = kwargs['config']
self.config
передаются нужные мне значения, которые я должен передать в settings.py
, но я не понимаю, как можно это сделать.AWS_SES_CONFIGURATION_SET
AWS_SES_CONFIGURATION_SET
= Sender.config
dk
dk
dk
AM
A
DT
DT
АВ
UnorderedObjectListWarning: Pagination may yield inconsistent results with an unordered object_list: <class 'blog.models.Post'> QuerySet.
allow_empty_first_page=allow_empty_first_page, **kwargs)
DT
UnorderedObjectListWarning: Pagination may yield inconsistent results with an unordered object_list: <class 'blog.models.Post'> QuerySet.
allow_empty_first_page=allow_empty_first_page, **kwargs)
АВ
PB
DT
PB
DT
PB
PB