view apps/snippet/urls.py @ 203:c5087ce140c9

modified snippets model file to add rating field. This series of updates should be applied carefully and south should be used so that it can add additional fields into the database without resetting the database
author Ahsan Ali Shahid <ahsan.ali.shahid@gmail.com>
date Fri, 19 Jul 2013 22:11:52 +0500
parents 49cda19bff99
children
line wrap: on
line source

from django.conf.urls.defaults import patterns, url
from django.conf import settings


urlpatterns = patterns('apps.snippet.views',
    url('^$',
        'snippet_new', name='snippet_new'),

    url(r'^explore$',
        'explore', name='snippet_explore'),
                       
    url(r'^guess/$',
        'guess_lexer', name='snippet_guess_lexer'),
                       
    url(r'^diff/$',
        'snippet_diff', name='snippet_diff'),

    url(r'^your-latest/$',
        'snippet_userlist', name='snippet_userlist'),
                       
    url(r'^your-settings/$',
        'userprefs', name='snippet_userprefs'),
                       
    url(r'^(?P<snippet_id>[a-zA-Z0-9]{4})/$',
        'snippet_details', name='snippet_details'),
                       
    url(r'^(?P<snippet_id>[a-zA-Z0-9]{4})/delete/$',
        'snippet_delete', name='snippet_delete'),

    url(r'^(?P<snippet_id>[a-zA-Z0-9]{4})/raw/$',
        'snippet_details',
          {'template_name': 'snippet/snippet_details_raw.djhtml',
           'is_raw': True},
        name='snippet_details_raw'),
    url(r'^(?P<snippet_id>[a-zA-Z0-9]{4})/rating/process/'  , 'processrating' ),
)