Answer the question
In order to leave comments, you need to log in
Django2 to Django3, url to path...?
Works.
urlpatterns = [
re_path('(?P<year>\d{4})/(?P<month>\w{3})/(?P<day>\d{2})/(?P<slug>[-\w]+)/$',
]
urlpatterns = [
path('(<int:year_id>/<int:month_id>/<int:day_id>/<int:slug_id>',
]
Answer the question
In order to leave comments, you need to log in
Obviously different capturing group names, different group types and extra parenthesis
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question