10 lines
302 B
Python
10 lines
302 B
Python
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'),
|
|
] |