annotate news/urls.py @ 95:7b52e8ef01ec
For Django 1.5: Remove usage of django.contrib.markup.
Since we were only using Textile in one place, decided to stop using it
altogether.
Wrote a management command, untextile, to convert the gallery models'
description fields from textile to raw HTML. This should be run one time before
going live with Django 1.5.
author |
Brian Neal <bgneal@gmail.com> |
date |
Wed, 28 Aug 2013 19:22:23 -0500 |
parents |
e2868ad47a1e |
children |
312f198e8958 |
rev |
line source |
bgneal@45
|
1 """
|
bgneal@45
|
2 Urls for the news application.
|
bgneal@45
|
3
|
bgneal@45
|
4 """
|
bgneal@66
|
5 from django.conf.urls import patterns, url
|
bgneal@45
|
6 from django.views.generic import DetailView, ListView
|
bgneal@45
|
7
|
bgneal@45
|
8 from news.models import News
|
bgneal@45
|
9
|
bgneal@45
|
10
|
bgneal@45
|
11 urlpatterns = patterns('',
|
bgneal@45
|
12 url(r'^$',
|
bgneal@45
|
13 ListView.as_view(
|
bgneal@45
|
14 model=News,
|
bgneal@45
|
15 paginate_by=10,
|
bgneal@45
|
16 context_object_name='news_list'),
|
bgneal@45
|
17 name='news-index'),
|
bgneal@45
|
18 url(r'^story/(?P<pk>\d+)/$',
|
bgneal@45
|
19 DetailView.as_view(model=News, context_object_name='story'),
|
bgneal@45
|
20 name='news-item')
|
bgneal@45
|
21 )
|