# Path: blog/sitemap.py
# class BlogSitemap(Sitemap):
#     changefreq = "daily"
#     priority = 0.5
# 
#     def items(self):
#         return Entry.objects.filter(public=True)
# 
#     def lastmod(self, obj):
#         return obj.modified
# 
# Path: pages/sitemap.py
# class PageSitemap(Sitemap):
#     changefreq = "daily"
#     priority = 0.5
# 
#     def items(self):
#         return Page.objects.filter(public=True)
# 
#     def lastmod(self, obj):
#         return obj.modified


from django.conf.urls import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.conf import settings
from django.views.generic import RedirectView
from django.contrib import admin
from filebrowser.sites import site
from blog.sitemap import BlogSitemap
from pages.sitemap import PageSitemap

admin.autodiscover()



sitemaps = {
    'blog': BlogSitemap,
    'pages': PageSitemap,
}

urlpatterns = patterns('',
    url(r'^admin/filebrowser/', include(site.urls)),
    url(r'^admin/doc/',  include('django.contrib.admindocs.urls')),
    url(r'^admin/',      include(admin.site.urls)),
    url(r'^grappelli/',  include('grappelli.urls')),

    url(r'^',            include('blog.urls')),
    url(r'^i/',          include('plog.urls')),
    url(r'^p/',          include('pages.urls')),

# Path: blog/sitemap.py
# class BlogSitemap(Sitemap):
#     changefreq = "daily"
#     priority = 0.5
# 
#     def items(self):
#         return Entry.objects.filter(public=True)
# 
#     def lastmod(self, obj):
#         return obj.modified
# 
# Path: pages/sitemap.py
# class PageSitemap(Sitemap):
#     changefreq = "daily"
#     priority = 0.5
# 
#     def items(self):
#         return Page.objects.filter(public=True)
# 
#     def lastmod(self, obj):
#         return obj.modified


# Path: ezlog/urls.py
from django.conf.urls import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.conf import settings
from django.views.generic import RedirectView
from django.contrib import admin
from filebrowser.sites import site
from blog.sitemap import BlogSitemap
from pages.sitemap import PageSitemap


admin.autodiscover()



sitemaps = {
    'blog': BlogSitemap,
    'pages': PageSitemap,
}

urlpatterns = patterns('',
    url(r'^admin/filebrowser/', include(site.urls)),
    url(r'^admin/doc/',  include('django.contrib.admindocs.urls')),
    url(r'^admin/',      include(admin.site.urls)),
    url(r'^grappelli/',  include('grappelli.urls')),

    url(r'^',            include('blog.urls')),
    url(r'^i/',          include('plog.urls')),
    url(r'^p/',          include('pages.urls')),

    url(r'^ezsettings/', include('ezconf.urls')),