@@ -17,10 +17,10 @@
# along with this program in a file in the toplevel directory called
# "AGPLv3". If not, see <http://www.gnu.org/licenses/>.
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