rakkapy/books/urls.py

10 lines
302 B
Python
Raw Normal View History

from django.urls import path, register_converter
from . import views,converters
register_converter(converters.RealIntConverter,'rint')
urlpatterns=[
path('',views.index,name='bidex'),
path('<str:bookurl>',views.book,name='bbook'),
path('<str:bookurl>/<rint:chapnum>',views.chapter,name='bchap'),
]