pasteque/paste/urls.py

12 lines
317 B
Python

from django.urls import path
from django.views.static import serve
from paste import views
from webtools import settings
urlpatterns = [
path("", views.index, name="index"),
path("::/static/<path>", serve, {"document_root": settings.STATIC_ROOT}),
path("<path:slug>", views.show, name="short_paste"),
]