# Path: html5_appcache/test_utils/testapp/sitemap.py
# class NewsSitemap(Sitemap):
#     changefreq = 'weekly'
#     priority = "0.5"
#     multisite = False
#     model = News
# 
#     def items(self):
#         if self.multisite:
#             return self.model.objects.filter(published=True).filter(sites=Site.objects.get_current())
#         else:
#             return self.model.objects.filter(published=True)
# 
#     def lastmod(self, obj):
#         return obj.modification_date
# 
# Path: html5_appcache/test_utils/testapp/views.py
# class NewsListView(ListView):
#     model = News
# 
# class NewsDetailView(DetailView):
#     model = News


from django.conf.urls import url, include
from django.contrib import admin
from django.conf.urls.i18n import i18n_patterns
from .sitemap import NewsSitemap
from .views import NewsListView, NewsDetailView
import html5_appcache
# -*- coding: utf-8 -*-

html5_appcache.autodiscover()


sitemaps = {
    'news': NewsSitemap,
}

urlpatterns = i18n_patterns('',
    url("^list/$", NewsListView.as_view(), name="news_list"),

# Path: html5_appcache/test_utils/testapp/sitemap.py
# class NewsSitemap(Sitemap):
#     changefreq = 'weekly'
#     priority = "0.5"
#     multisite = False
#     model = News
# 
#     def items(self):
#         if self.multisite:
#             return self.model.objects.filter(published=True).filter(sites=Site.objects.get_current())
#         else:
#             return self.model.objects.filter(published=True)
# 
#     def lastmod(self, obj):
#         return obj.modification_date
# 
# Path: html5_appcache/test_utils/testapp/views.py
# class NewsListView(ListView):
#     model = News
# 
# class NewsDetailView(DetailView):
#     model = News


# Path: html5_appcache/test_utils/testapp/urls.py
from django.conf.urls import url, include
from django.contrib import admin
from django.conf.urls.i18n import i18n_patterns
from .sitemap import NewsSitemap
from .views import NewsListView, NewsDetailView
import html5_appcache

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

html5_appcache.autodiscover()


sitemaps = {
    'news': NewsSitemap,
}

urlpatterns = i18n_patterns('',
    url("^list/$", NewsListView.as_view(), name="news_list"),

    url("^(?P<pk>\d+)/live/$", NewsListView.as_view(), name="news_detail_live"),