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 diff
--- a/apps/snippet/urls.py
+++ b/apps/snippet/urls.py
@@ -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
+++ b/apps/snippet/views.py
@@ -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":