From 371b04c87136ee1926c488c6a499fbef472dd27a Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 25 May 2014 12:32:25 -0400 Subject: added writing/location urls to sitemap --- config/base_urls.py | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'config') diff --git a/config/base_urls.py b/config/base_urls.py index 35a057b..e4a4999 100644 --- a/config/base_urls.py +++ b/config/base_urls.py @@ -1,11 +1,10 @@ from django.conf.urls import * from django.contrib import admin from django.views.generic import TemplateView -from django.contrib.sitemaps import FlatPageSitemap from django.conf import settings -from blog.models import BlogSitemap,LatestFull -from locations.models import WritingbyLocationSitemap +from blog.models import BlogSitemap, LatestFull +from locations.models import WritingbyCountrySitemap from links.models import LatestLinks from photos.models import PhotoGallerySitemap from projects.models.base import ProjectSitemap @@ -15,17 +14,19 @@ admin.autodiscover() sitemaps = { 'blog': BlogSitemap, + 'writingbyloc': WritingbyCountrySitemap, 'photos': PhotoGallerySitemap, 'projects': ProjectSitemap } feeds = { 'writing': LatestFull, - 'fblinks' : LatestLinks, + 'fblinks': LatestLinks, } urlpatterns = patterns('', - (r'^media/js/mainmap.js$', 'locations.views.map_data'), - (r'^media/admin/(?P.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT+'/admin'}), + (r'^media/js/mainmap.js$', 'locations.views.map_data'), + (r'^media/admin/(?P.*)$', 'django.views.static.serve', {'document_root': + settings.MEDIA_ROOT + '/admin'}), (r'^media/(?P.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), ) @@ -58,16 +59,16 @@ urlpatterns += patterns('', #about #(r'^about/$', 'blog.views.about'), #'blog.views.home'), #homepage - (r'^$', 'blog.views.home'), #'blog.views.home'), + (r'^$', 'blog.views.home'), #pages - (r'^(?P[-\w]+)/$', 'pages.views.page'), + (r'^(?P[-\w]+)/$', 'pages.views.page'), ) urlpatterns += patterns('', - url(r'^static/(?P.*)$', 'django.views.static.serve', - {'document_root': settings.STATIC_ROOT,} - ), + url(r'^static/(?P.*)$', 'django.views.static.serve', + {'document_root': settings.STATIC_ROOT, } + ), ) urlpatterns += patterns('', url(r'^blog/comments/', include('fluent_comments.urls')), -- cgit v1.2.3-70-g09d2