view gpp/ygroup/urls.py @ 467:b910cc1460c8

Add the ability to conditionally add model instances to the search index on update. This is not perfect, as some instances should be deleted from the index if they are updated such that they should not be in the index anymore. Will think about and address that later.
author Brian Neal <bgneal@gmail.com>
date Sun, 24 Jul 2011 18:12:20 +0000
parents 0c18dfb1da1c
children ddd69a8e07c7
line wrap: on
line source
"""
urls.py - URLs for the ygroup application.

"""
from django.conf.urls.defaults import *
from django.views.generic import ListView, DetailView

from ygroup.models import Thread, Post
from ygroup.views import ThreadIndexView, ThreadView


urlpatterns = patterns('',
    url(r'^threads/$',
        ThreadIndexView.as_view(),
        name='ygroup-thread_index'),
    url(r'^thread/(\d+)/$',
        ThreadView.as_view(),
        name='ygroup-thread_view'),
    url(r'^post/(?P<pk>\d+)/$',
        DetailView.as_view(model=Post, context_object_name='post'),
        name='ygroup-post_view'),
)