# Path: elephantblog/sitemap.py
# class EntrySitemap(Sitemap):
#     def items(self):
#         return Entry.objects.active()
# 
#     def lastmod(self, obj):
#         return obj.last_changed
# 
# Path: elephantblog/urls.py
# def elephantblog_patterns(list_kwargs={}, detail_kwargs={}):
#     """
#     Returns an instance of ready-to-use URL patterns for the blog.
# 
#     In the future, we will have a few configuration parameters here:
# 
#     - A parameter to specify a custom mixin for all view classes (or for
#       list / detail view classes?)
#     - Parameters to specify the language handling (probably some initialization
#       arguments for the ``as_view`` methods)
#     - The format of the month (three chars or two digits)
#     - etc.
#     """
#     return [
#         path("feed/", EntryFeed(), name="elephantblog_feed"),
#         path(
#             "",
#             views.ArchiveIndexView.as_view(**list_kwargs),
#             name="elephantblog_entry_archive",
#         ),
#         re_path(
#             r"^(?P<year>\d{4})/$",
#             views.YearArchiveView.as_view(**list_kwargs),
#             name="elephantblog_entry_archive_year",
#         ),
#         re_path(
#             r"^(?P<year>\d{4})/(?P<month>\d{2})/$",
#             views.MonthArchiveView.as_view(**list_kwargs),
#             name="elephantblog_entry_archive_month",
#         ),
#         re_path(
#             r"^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/$",
#             views.DayArchiveView.as_view(**list_kwargs),
#             name="elephantblog_entry_archive_day",
#         ),
#         re_path(
#             r"^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/" r"(?P<slug>[-\w]+)/$",
#             views.DateDetailView.as_view(**detail_kwargs),
#             name="elephantblog_entry_detail",
#         ),
#         re_path(
#             r"^category/(?P<slug>[-\w]+)/$",
#             views.CategoryArchiveIndexView.as_view(**list_kwargs),
#             name="elephantblog_category_detail",
#         ),
#         re_path(
#             r"^author/(?P<pk>[-\w]+)/$",
#             views.AuthorArchiveIndexView.as_view(**list_kwargs),
#             name="elephantblog_author_detail",
#         ),
#     ]


from django.contrib import admin
from django.contrib.sitemaps.views import sitemap
from django.urls import include, path, re_path
from elephantblog.sitemap import EntrySitemap
from elephantblog.urls import elephantblog_patterns



admin.autodiscover()


sitemaps = {
    "elephantblog": EntrySitemap,
}


urlpatterns = [
    path("admin/", admin.site.urls),
    path("blog/", include("elephantblog.urls")),
    re_path(
        r"^sitemap\.xml$",
        sitemap,
        {"sitemaps": sitemaps},
    ),
    path(
        "multilang/",
        include(

# Path: elephantblog/sitemap.py
# class EntrySitemap(Sitemap):
#     def items(self):
#         return Entry.objects.active()
# 
#     def lastmod(self, obj):
#         return obj.last_changed
# 
# Path: elephantblog/urls.py
# def elephantblog_patterns(list_kwargs={}, detail_kwargs={}):
#     """
#     Returns an instance of ready-to-use URL patterns for the blog.
# 
#     In the future, we will have a few configuration parameters here:
# 
#     - A parameter to specify a custom mixin for all view classes (or for
#       list / detail view classes?)
#     - Parameters to specify the language handling (probably some initialization
#       arguments for the ``as_view`` methods)
#     - The format of the month (three chars or two digits)
#     - etc.
#     """
#     return [
#         path("feed/", EntryFeed(), name="elephantblog_feed"),
#         path(
#             "",
#             views.ArchiveIndexView.as_view(**list_kwargs),
#             name="elephantblog_entry_archive",
#         ),
#         re_path(
#             r"^(?P<year>\d{4})/$",
#             views.YearArchiveView.as_view(**list_kwargs),
#             name="elephantblog_entry_archive_year",
#         ),
#         re_path(
#             r"^(?P<year>\d{4})/(?P<month>\d{2})/$",
#             views.MonthArchiveView.as_view(**list_kwargs),
#             name="elephantblog_entry_archive_month",
#         ),
#         re_path(
#             r"^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/$",
#             views.DayArchiveView.as_view(**list_kwargs),
#             name="elephantblog_entry_archive_day",
#         ),
#         re_path(
#             r"^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/" r"(?P<slug>[-\w]+)/$",
#             views.DateDetailView.as_view(**detail_kwargs),
#             name="elephantblog_entry_detail",
#         ),
#         re_path(
#             r"^category/(?P<slug>[-\w]+)/$",
#             views.CategoryArchiveIndexView.as_view(**list_kwargs),
#             name="elephantblog_category_detail",
#         ),
#         re_path(
#             r"^author/(?P<pk>[-\w]+)/$",
#             views.AuthorArchiveIndexView.as_view(**list_kwargs),
#             name="elephantblog_author_detail",
#         ),
#     ]


# Path: tests/testapp/urls.py
from django.contrib import admin
from django.contrib.sitemaps.views import sitemap
from django.urls import include, path, re_path
from elephantblog.sitemap import EntrySitemap
from elephantblog.urls import elephantblog_patterns




admin.autodiscover()


sitemaps = {
    "elephantblog": EntrySitemap,
}


urlpatterns = [
    path("admin/", admin.site.urls),
    path("blog/", include("elephantblog.urls")),
    re_path(
        r"^sitemap\.xml$",
        sitemap,
        {"sitemaps": sitemaps},
    ),
    path(
        "multilang/",
        include(

            elephantblog_patterns(