diff --git a/conservancy/podjango/urls.py b/conservancy/podjango/urls.py index 5c408e1a0fd40035960c8558d5efa284bdb47bfd..31165d124c63a84e34e4cfdce67d7b87003c0419 100644 --- a/conservancy/podjango/urls.py +++ b/conservancy/podjango/urls.py @@ -17,10 +17,10 @@ # along with this program in a file in the toplevel directory called # "AGPLv3". If not, see . +import datetime + from django.conf import settings -from django.conf.urls import include, url -from django.contrib import admin -from django.contrib.syndication.views import Feed +from django.conf.urls import url from django.views.generic.dates import ( DateDetailView, DayArchiveView, @@ -29,7 +29,7 @@ from django.views.generic.dates import ( ) from . import frontpage -from .feeds import Mp3CastFeed, OggCastFeed, feed_dict, view +from .feeds import Mp3CastFeed, OggCastFeed, view from .models import Cast, CastTag from .views import custom_index, query @@ -60,6 +60,7 @@ if settings.DEBUG: from django.conf.urls.static import static urlpatterns += static('/', document_root='podjango/static') + def all_tags_by_use_amount(): """Returns all tags with an added 'cnt' attribute (how many times used) @@ -85,6 +86,7 @@ def all_tags_by_use_amount(): retval.sort(key=lambda x: -x.cnt) return retval + # The functions are passed to the context uncalled so they will be # called for each web request. If we want to only make these database # queries a single time when a web server process begins, call both