Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

src/s/o/source-HEAD/source/base/urls.py   source(Download)
from django.conf import settings
from django.conf.urls.defaults import *
from django.views.decorators.cache import cache_page
 
from .feeds import ArticleFeed
    url(
        regex = '^rss/$',
        view = cache_page(ArticleFeed(), FEED_CACHE_TIME),
        kwargs = {},
        name = 'homepage_feed',
    url(
        regex = '^category/(?P<category>[-\w]+)/rss/$',
        view = cache_page(ArticleFeed(), FEED_CACHE_TIME),
        kwargs = {},
        name = 'article_list_by_category_feed',
    url(
        regex = '^(?P<section>[-\w]+)/rss/$',
        view = cache_page(ArticleFeed(), FEED_CACHE_TIME),
        kwargs = {},
        name = 'article_list_by_section_feed',