# Path: staticgen/helpers.py
# def get_static_site_domain():
#     static_site_domain = settings.STATICGEN_STATIC_SITE_DOMAIN
#     if static_site_domain is None:
#         connection = connect_s3(
#             settings.AWS_ACCESS_KEY_ID,
#             settings.AWS_SECRET_ACCESS_KEY
#         )
#         bucket = connection.get_bucket(settings.AWS_STORAGE_BUCKET_NAME)
#         static_site_domain = bucket.get_website_endpoint()
#     return static_site_domain.rstrip('/')


from django.contrib.sites.models import Site
from .helpers import get_static_site_domain
# -*- coding: utf-8 -*-




class StaticgenSitemap(object):

    def get_urls(self, page=1, site=None, protocol=None):
        site = Site(domain=get_static_site_domain(), name='Static Site Domain')
        return super(StaticgenSitemap, self).get_urls(page=page, site=site, protocol=protocol)


def override_sitemaps_domain(sitemaps):
    staticgen_sitemaps = {}

# Path: staticgen/helpers.py
# def get_static_site_domain():
#     static_site_domain = settings.STATICGEN_STATIC_SITE_DOMAIN
#     if static_site_domain is None:
#         connection = connect_s3(
#             settings.AWS_ACCESS_KEY_ID,
#             settings.AWS_SECRET_ACCESS_KEY
#         )
#         bucket = connection.get_bucket(settings.AWS_STORAGE_BUCKET_NAME)
#         static_site_domain = bucket.get_website_endpoint()
#     return static_site_domain.rstrip('/')


# Path: staticgen/sitemaps.py
from django.contrib.sites.models import Site
from .helpers import get_static_site_domain

# -*- coding: utf-8 -*-




class StaticgenSitemap(object):

    def get_urls(self, page=1, site=None, protocol=None):
        site = Site(domain=get_static_site_domain(), name='Static Site Domain')
        return super(StaticgenSitemap, self).get_urls(page=page, site=site, protocol=protocol)


def override_sitemaps_domain(sitemaps):
    staticgen_sitemaps = {}

    for section, site in sitemaps.items():