summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2014-05-25 12:32:25 -0400
committerluxagraf <sng@luxagraf.net>2014-05-25 12:32:25 -0400
commit371b04c87136ee1926c488c6a499fbef472dd27a (patch)
tree34e78ca641525b161b089014cce88d5db786d2b1 /config
parent317a8508fe320c34a4d39a76ffbfa24e5ca8c4f9 (diff)
added writing/location urls to sitemap
Diffstat (limited to 'config')
-rw-r--r--config/base_urls.py23
1 files changed, 12 insertions, 11 deletions
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<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT+'/admin'}),
+ (r'^media/js/mainmap.js$', 'locations.views.map_data'),
+ (r'^media/admin/(?P<path>.*)$', 'django.views.static.serve', {'document_root':
+ settings.MEDIA_ROOT + '/admin'}),
(r'^media/(?P<path>.*)$', '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<slug>[-\w]+)/$', 'pages.views.page'),
+ (r'^(?P<slug>[-\w]+)/$', 'pages.views.page'),
)
urlpatterns += patterns('',
- url(r'^static/(?P<path>.*)$', 'django.views.static.serve',
- {'document_root': settings.STATIC_ROOT,}
- ),
+ url(r'^static/(?P<path>.*)$', 'django.views.static.serve',
+ {'document_root': settings.STATIC_ROOT, }
+ ),
)
urlpatterns += patterns('',
url(r'^blog/comments/', include('fluent_comments.urls')),