changeset 85:5956f6349373

Change URL for new snippet view Also added an "explore" view, for listing all the snippets and things like that (not yet implemented)
author dellsystem <ilostwaldo@gmail.com>
date Fri, 24 Aug 2012 23:39:42 -0400
parents cf741f0c5255
children f97125d45898
files apps/snippet/urls.py apps/snippet/views.py
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/apps/snippet/urls.py	Fri Aug 24 17:24:02 2012 -0400
+++ b/apps/snippet/urls.py	Fri Aug 24 23:39:42 2012 -0400
@@ -2,7 +2,10 @@
 from django.conf import settings
 
 urlpatterns = patterns('agora.apps.snippet.views',
-    url(r'^$',
+    url('^$',
+        'snippet_explore', name='snippet_explore'),
+
+    url(r'^new$',
         'snippet_new', name='snippet_new'),
                        
     url(r'^guess/$',
--- a/apps/snippet/views.py	Fri Aug 24 17:24:02 2012 -0400
+++ b/apps/snippet/views.py	Fri Aug 24 23:39:42 2012 -0400
@@ -16,6 +16,11 @@
 from django.utils import simplejson
 import difflib
 
+
+def snippet_explore(request):
+    pass
+
+
 def snippet_new(request, template_name='snippet/snippet_new.djhtml'):
 
     if request.method == "POST":