mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-12-25 16:05:15 +11:00
19 lines
659 B
Python
19 lines
659 B
Python
from __future__ import unicode_literals
|
|
|
|
from django.conf import settings
|
|
from django.conf.urls import url
|
|
|
|
from .. import views
|
|
|
|
L = getattr(settings, 'DPASTE_SLUG_LENGTH', 4)
|
|
|
|
urlpatterns = [
|
|
url(r'^$', views.SnippetView.as_view(), name='snippet_new'),
|
|
url(r'^about/$', views.AboutView.as_view(), name='dpaste_about'),
|
|
url(r'^history/$', views.SnippetHistory.as_view(), name='snippet_history'),
|
|
|
|
url(r'^(?P<snippet_id>[a-zA-Z0-9]{%d,})/?$' % L,
|
|
views.SnippetDetailView.as_view(), name='snippet_details'),
|
|
url(r'^(?P<snippet_id>[a-zA-Z0-9]{%d,})/raw/?$' % L,
|
|
views.SnippetRawView.as_view(), name='snippet_details_raw'),
|
|
]
|