pasteque/paste/urls.py
2023-04-21 14:58:08 +02:00

12 lines
309 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("<slug>", views.show, name="short_paste"),
]