summaryrefslogtreecommitdiffstats
path: root/sites/urls.py
blob: 9131235d6210a23b6d47ce82fd2d548c335ea763 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from django.conf.urls.defaults import *
from infopoint.sites.models import *
from infopoint.agenda.models import *
from django.contrib.auth import views


posts_dict = {
	'queryset': FlatPage.objects.all()
	}

site_dict = {
	'queryset': Site.objects.all()
	}


urlpatterns = patterns('',
	(r'^$', 'django.views.generic.list_detail.object_list', site_dict),
	#(r'^2/$', 'infopoint.sites.views.all_activity'),
	#(r'^f/(?P<object_id>\d+)/$', 'infopoint.sites.views.one_flatpage'),
	#(r'^f/$', 'infopoint.sites.views.flatpages'),
	(r'^post/(?P<object_id>\d+)/$', 'django.views.generic.list_detail.object_detail', posts_dict ),
	(r'^/post/(?P<object_id>\d+)/edit/$', 'django.views.generic.create_update.update_object', posts_dict),
)