mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-16 00:22:54 +11:00
6ff55e461c
Conflicts: pastebin/apps/dpaste/models.py
14 lines
805 B
Python
14 lines
805 B
Python
from django.conf.urls.defaults import patterns, url
|
|
from django.conf import settings
|
|
|
|
|
|
urlpatterns = patterns('pastebin.apps.dpaste.views',
|
|
url(r'^$', 'snippet_new', name='snippet_new'),
|
|
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]+)/$', 'snippet_details', name='snippet_details'),
|
|
url(r'^(?P<snippet_id>[a-zA-Z0-9]+)/delete/$', 'snippet_delete', name='snippet_delete'),
|
|
url(r'^(?P<snippet_id>[a-zA-Z0-9]+)/raw/$', 'snippet_details', {'template_name': 'dpaste/snippet_details_raw.html', 'is_raw': True}, name='snippet_details_raw'),
|
|
)
|