pasteque/paste/urls.py

12 lines
317 B
Python
Raw Normal View History

2023-04-21 07:28:43 +00:00
from django.urls import path
2018-05-06 21:19:49 +00:00
from django.views.static import serve
2023-04-21 12:47:30 +00:00
2013-04-04 17:37:30 +00:00
from paste import views
from webtools import settings
2018-05-06 21:19:49 +00:00
urlpatterns = [
2023-04-21 07:28:43 +00:00
path("", views.index, name="index"),
path("::/static/<path>", serve, {"document_root": settings.STATIC_ROOT}),
path("<path:slug>", views.show, name="short_paste"),
2018-05-06 21:19:49 +00:00
]