# HG changeset patch # User dellsystem # Date 1345865982 14400 # Node ID 5956f6349373e10a649615f6fe19c025ea706cdd # Parent cf741f0c5255aa619088c65e1795e2c621189905 Change URL for new snippet view Also added an "explore" view, for listing all the snippets and things like that (not yet implemented) diff -r cf741f0c5255 -r 5956f6349373 apps/snippet/urls.py --- 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/$', diff -r cf741f0c5255 -r 5956f6349373 apps/snippet/views.py --- 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":