# Path: elephantblog/views.py
# PAGINATE_BY = getattr(settings, "BLOG_PAGINATE_BY", 10)
# class ElephantblogMixin:
# class TranslationMixin:
# class ArchiveIndexView(TranslationMixin, ElephantblogMixin, dates.ArchiveIndexView):
# class YearArchiveView(TranslationMixin, ElephantblogMixin, dates.YearArchiveView):
# class MonthArchiveView(TranslationMixin, ElephantblogMixin, dates.MonthArchiveView):
# class DayArchiveView(TranslationMixin, ElephantblogMixin, dates.DayArchiveView):
# class DateDetailView(
#     TranslationMixin, ContentObjectMixin, ElephantblogMixin, dates.DateDetailView
# ):
# class CategoryArchiveIndexView(ArchiveIndexView):
# class AuthorArchiveIndexView(ArchiveIndexView):
#     def get_context_data(self, **kwargs):
#     def get_queryset(self):
#     def render_to_response(self, context, **response_kwargs):
#     def get_queryset(self):
#     def get_queryset(self):
#     def dispatch(self, request, *args, **kwargs):
#     def lookup_related(self):
#     def get_next_or_none(self):
#     def get_previous_or_none(self):
#     def get_queryset(self):
#     def get_context_data(self, **kwargs):
#     def get_queryset(self):
#     def get_context_data(self, **kwargs):
# 
# Path: elephantblog/feeds.py
# class EntryFeed(Feed):
#     title = getattr(settings, "BLOG_TITLE", "Unnamed")
#     link = "/blog/"
#     description = getattr(settings, "BLOG_DESCRIPTION", "")
# 
#     def items(self):
#         if hasattr(Entry, "translation_of"):
#             return (
#                 Entry.objects.active()
#                 .filter(language=get_language())
#                 .order_by("-published_on")[:20]
#             )
#         else:
#             return Entry.objects.active().order_by("-published_on")[:20]
# 
#     def item_title(self, item):
#         return item.title
# 
#     def item_description(self, item):
#         return "".join(tryrender(c) for c in item.content.main)
# 
#     def item_pubdate(self, item):
#         return item.published_on


from django.urls import path, re_path
from elephantblog import views
from elephantblog.feeds import EntryFeed
    }


NOTE! You need to register the app as follows for the application content
snippet::

    Page.create_content_type(ApplicationContent, APPLICATIONS=(
        ('elephantblog', _('Blog'), {'urls': 'elephantblog.urls'}),
        ))

"""





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: elephantblog/views.py
# PAGINATE_BY = getattr(settings, "BLOG_PAGINATE_BY", 10)
# class ElephantblogMixin:
# class TranslationMixin:
# class ArchiveIndexView(TranslationMixin, ElephantblogMixin, dates.ArchiveIndexView):
# class YearArchiveView(TranslationMixin, ElephantblogMixin, dates.YearArchiveView):
# class MonthArchiveView(TranslationMixin, ElephantblogMixin, dates.MonthArchiveView):
# class DayArchiveView(TranslationMixin, ElephantblogMixin, dates.DayArchiveView):
# class DateDetailView(
#     TranslationMixin, ContentObjectMixin, ElephantblogMixin, dates.DateDetailView
# ):
# class CategoryArchiveIndexView(ArchiveIndexView):
# class AuthorArchiveIndexView(ArchiveIndexView):
#     def get_context_data(self, **kwargs):
#     def get_queryset(self):
#     def render_to_response(self, context, **response_kwargs):
#     def get_queryset(self):
#     def get_queryset(self):
#     def dispatch(self, request, *args, **kwargs):
#     def lookup_related(self):
#     def get_next_or_none(self):
#     def get_previous_or_none(self):
#     def get_queryset(self):
#     def get_context_data(self, **kwargs):
#     def get_queryset(self):
#     def get_context_data(self, **kwargs):
# 
# Path: elephantblog/feeds.py
# class EntryFeed(Feed):
#     title = getattr(settings, "BLOG_TITLE", "Unnamed")
#     link = "/blog/"
#     description = getattr(settings, "BLOG_DESCRIPTION", "")
# 
#     def items(self):
#         if hasattr(Entry, "translation_of"):
#             return (
#                 Entry.objects.active()
#                 .filter(language=get_language())
#                 .order_by("-published_on")[:20]
#             )
#         else:
#             return Entry.objects.active().order_by("-published_on")[:20]
# 
#     def item_title(self, item):
#         return item.title
# 
#     def item_description(self, item):
#         return "".join(tryrender(c) for c in item.content.main)
# 
#     def item_pubdate(self, item):
#         return item.published_on


# Path: elephantblog/urls.py
from django.urls import path, re_path
from elephantblog import views
from elephantblog.feeds import EntryFeed

    }


NOTE! You need to register the app as follows for the application content
snippet::

    Page.create_content_type(ApplicationContent, APPLICATIONS=(
        ('elephantblog', _('Blog'), {'urls': 'elephantblog.urls'}),
        ))

"""





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"),