Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (19 sloc) 877 Bytes
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
from django.views.generic.list_detail import object_list, object_detail
from planeta.models import Post
post = {'queryset': Post.objects.all()}
urlpatterns = patterns('',
# Example:
# (r'^aggregator/', include('')),
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
# to INSTALLED_APPS to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
url(r'^post/$', object_list, post, name='posts'),
url(r'^post/(?P<object_id>\d+)/$', object_detail, post, name='post'),
#(r'^artigo/(?P<post_id>\d+)/$', ''),