from django.contrib.sitemaps import GenericSitemap
try:
    from django.contrib.flatpages.sitemaps import FlatPageSitemap
except ImportError:
    from django.contrib.sitemaps import FlatPageSitemap

from .blog.models import Entry, Category
from .gallery.models import Gallery


sitemaps = {
    'flatpages': FlatPageSitemap,
    'blog_entries': GenericSitemap(
        {
            'queryset': Entry.objects.published(),
            'date_field': 'modified',
        },
        priority=0.9
    ),
    'blog_categories': GenericSitemap(
        {
            'queryset': Category.objects.with_last_modified(),
            'date_field': 'modified',
        },
        priority=0.8
    ),
    'gallery': GenericSitemap(
        {
            'queryset': Gallery.objects.active(),
            'date_field': 'modified',
        },
        priority=0.6
    ),
}

6b73103449b87508d89e7b1e93be5d2b83f50823
<mask token>

<mask token>
try:
    from django.contrib.flatpages.sitemaps import FlatPageSitemap
except ImportError:
    from django.contrib.sitemaps import FlatPageSitemap
<mask token>

<mask token>
try:
    from django.contrib.flatpages.sitemaps import FlatPageSitemap
except ImportError:
    from django.contrib.sitemaps import FlatPageSitemap
<mask token>
sitemaps = {'flatpages': FlatPageSitemap, 'blog_entries': GenericSitemap({
    'queryset': Entry.objects.published(), 'date_field': 'modified'},
    priority=0.9), 'blog_categories': GenericSitemap({'queryset': Category.
    objects.with_last_modified(), 'date_field': 'modified'}, priority=0.8),
    'gallery': GenericSitemap({'queryset': Gallery.objects.active(),
    'date_field': 'modified'}, priority=0.6)}

from django.contrib.sitemaps import GenericSitemap
try:
    from django.contrib.flatpages.sitemaps import FlatPageSitemap
except ImportError:
    from django.contrib.sitemaps import FlatPageSitemap
from .blog.models import Entry, Category
from .gallery.models import Gallery
sitemaps = {'flatpages': FlatPageSitemap, 'blog_entries': GenericSitemap({
    'queryset': Entry.objects.published(), 'date_field': 'modified'},
    priority=0.9), 'blog_categories': GenericSitemap({'queryset': Category.
    objects.with_last_modified(), 'date_field': 'modified'}, priority=0.8),
    'gallery': GenericSitemap({'queryset': Gallery.objects.active(),
    'date_field': 'modified'}, priority=0.6)}

from django.contrib.sitemaps import GenericSitemap
try:
    from django.contrib.flatpages.sitemaps import FlatPageSitemap
except ImportError:
    from django.contrib.sitemaps import FlatPageSitemap

from .blog.models import Entry, Category
from .gallery.models import Gallery


sitemaps = {
    'flatpages': FlatPageSitemap,
    'blog_entries': GenericSitemap(
        {
            'queryset': Entry.objects.published(),
            'date_field': 'modified',
        },
        priority=0.9
    ),
    'blog_categories': GenericSitemap(
        {
            'queryset': Category.objects.with_last_modified(),
            'date_field': 'modified',
        },
        priority=0.8
    ),
    'gallery': GenericSitemap(
        {
            'queryset': Gallery.objects.active(),
            'date_field': 'modified',
        },
        priority=0.6
    ),
}
