annotate contests/urls.py @ 693:ad69236e8501

For issue #52, update many 3rd party Javascript libraries. Updated to jquery 1.10.2, jquery ui 1.10.3. This broke a lot of stuff. - Found a newer version of the jquery cycle all plugin (3.0.3). - Updated JPlayer to 2.4.0. - Updated to MarkItUp 1.1.14. This also required me to add multiline attributes set to true on various buttons in the markdown set. - As per a stackoverflow post, added some code to get multiline titles in a jQuery UI dialog. They removed that functionality but allow you to put it back. Tweaked the MarkItUp preview CSS to show blockquotes in italic. Did not update TinyMCE at this time. I'm not using the JQuery version and this version appears to work ok for now. What I should do is make a repo for MarkItUp and do a vendor branch thing so I don't have to futz around diffing directories to figure out if I'll lose changes when I update.
author Brian Neal <bgneal@gmail.com>
date Wed, 04 Sep 2013 19:55:20 -0500
parents ee87ea74d46b
children 5977b43499f7
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@567 15 queryset=Contest.public_objects.select_related('winner')),
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@540 25 queryset=Contest.public_objects.all().select_related('winner')),
bgneal@540 26 name='contests-contest'),
bgneal@540 27 )