summaryrefslogtreecommitdiffstats
path: root/sites/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'sites/urls.py')
-rwxr-xr-xsites/urls.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/sites/urls.py b/sites/urls.py
new file mode 100755
index 0000000..9131235
--- /dev/null
+++ b/sites/urls.py
@@ -0,0 +1,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),
+)