# Path: poetry/sitemaps.py
# class StaticViewSitemap(sitemaps.Sitemap):
#     priority = 0.5
#     changefreq = 'weekly'
# 
#     def items(self):
#         return ['about', 'download']
# 
#     def location(self, item):
#         return reverse(item)
# 
# Path: poetry/apps/accounts/sitemaps.py
# class AccountsStaticSitemap(Sitemap):
#     priority = 0.5
# 
#     def items(self):
#         return ['signup', 'login']
# 
#     def location(self, item):
#         return reverse(item)
# 
# Path: poetry/apps/corpus/sitemaps.py
# class CorpusDataSitemap(GenericSitemap):
#     priority = 0.9
# 
#     def __init__(self):
#         super(CorpusDataSitemap, self).__init__(info_dict={'queryset': Poem.objects.all()})


from django.conf.urls import url, include
from django.contrib import admin
from django.contrib.sitemaps.views import sitemap, index
from django.views.generic import TemplateView
from poetry.sitemaps import StaticViewSitemap
from poetry.apps.accounts.sitemaps import AccountsStaticSitemap
from poetry.apps.corpus.sitemaps import CorpusDataSitemap
"""poetry URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""


sitemaps = {

# Path: poetry/sitemaps.py
# class StaticViewSitemap(sitemaps.Sitemap):
#     priority = 0.5
#     changefreq = 'weekly'
# 
#     def items(self):
#         return ['about', 'download']
# 
#     def location(self, item):
#         return reverse(item)
# 
# Path: poetry/apps/accounts/sitemaps.py
# class AccountsStaticSitemap(Sitemap):
#     priority = 0.5
# 
#     def items(self):
#         return ['signup', 'login']
# 
#     def location(self, item):
#         return reverse(item)
# 
# Path: poetry/apps/corpus/sitemaps.py
# class CorpusDataSitemap(GenericSitemap):
#     priority = 0.9
# 
#     def __init__(self):
#         super(CorpusDataSitemap, self).__init__(info_dict={'queryset': Poem.objects.all()})


# Path: poetry/urls.py
from django.conf.urls import url, include
from django.contrib import admin
from django.contrib.sitemaps.views import sitemap, index
from django.views.generic import TemplateView
from poetry.sitemaps import StaticViewSitemap
from poetry.apps.accounts.sitemaps import AccountsStaticSitemap
from poetry.apps.corpus.sitemaps import CorpusDataSitemap

"""poetry URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""


sitemaps = {

    'static': StaticViewSitemap,