annotate contests/urls.py @ 861:e4f8d87c3d30
Configure Markdown logger to reduce noise in logs.
Markdown is logging at the INFO level whenever it loads an extension.
This looks like it has been fixed in master at GitHub. But until then
we will explicitly configure the MARKDOWN logger to log at WARNING
or higher.
author |
Brian Neal <bgneal@gmail.com> |
date |
Mon, 01 Dec 2014 18:36:27 -0600 |
parents |
5977b43499f7 |
children |
5ba2508939f7 |
rev |
line source |
bgneal@540
|
1 """
|
bgneal@540
|
2 Url patterns for the contests application.
|
bgneal@540
|
3
|
bgneal@540
|
4 """
|
bgneal@574
|
5 from django.conf.urls import patterns, url
|
bgneal@540
|
6 from django.views.generic import DetailView, ListView
|
bgneal@540
|
7
|
bgneal@540
|
8 from contests.models import Contest
|
bgneal@540
|
9
|
bgneal@540
|
10
|
bgneal@540
|
11 urlpatterns = patterns('',
|
bgneal@540
|
12 url(r'^$',
|
bgneal@540
|
13 ListView.as_view(
|
bgneal@540
|
14 context_object_name='contests',
|
bgneal@796
|
15 queryset=Contest.public_objects.all().prefetch_related('winners')),
|
bgneal@540
|
16 name='contests-index'),
|
bgneal@540
|
17
|
bgneal@540
|
18 url(r'^enter/$',
|
bgneal@540
|
19 'contests.views.enter',
|
bgneal@540
|
20 name='contests-enter'),
|
bgneal@540
|
21
|
bgneal@540
|
22 url(r'^c/(?P<slug>[\w-]+)/$',
|
bgneal@540
|
23 DetailView.as_view(
|
bgneal@540
|
24 context_object_name='contest',
|
bgneal@796
|
25 queryset=Contest.public_objects.all().prefetch_related('winners')),
|
bgneal@540
|
26 name='contests-contest'),
|
bgneal@540
|
27 )
|