|  | @@ -6,11 +6,11 @@ from . import converters
 | 
											
												
													
														|  |  register_converter(converters.FourDigitYearConverter, "year4")
 |  |  register_converter(converters.FourDigitYearConverter, "year4")
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  urlpatterns = [
 |  |  urlpatterns = [
 | 
											
												
													
														|  | -    path('', views.index), # http://127.0.0.1:8000
 |  | 
 | 
											
												
													
														|  | 
 |  | +    path('', views.index, name='home'), # http://127.0.0.1:8000
 | 
											
												
													
														|  |      # path('details/', views.post_detail),
 |  |      # path('details/', views.post_detail),
 | 
											
												
													
														|  | -    path('posts/<int:year>', views.posts_list),
 |  | 
 | 
											
												
													
														|  | -    path('cats/<int:cat_id>/', views.categories), # http://127.0.0.1:8000/cats/1/
 |  | 
 | 
											
												
													
														|  | -    path('cats/<slug:cat_slug>/', views.categories_by_slug), # http://127.0.0.1:8000/cats/asdfad/
 |  | 
 | 
											
												
													
														|  | 
 |  | +    # path('posts/<int:year>', views.posts_list),
 | 
											
												
													
														|  | 
 |  | +    path('cats/<int:cat_id>/', views.categories, name='cat_id'), # http://127.0.0.1:8000/cats/1/
 | 
											
												
													
														|  | 
 |  | +    path('cats/<slug:cat_slug>/', views.categories_by_slug, name='cats'), # http://127.0.0.1:8000/cats/asdfad/
 | 
											
												
													
														|  |      # re_path(r"^archive/(?P<year>[0-9]{4})", views.archive),
 |  |      # re_path(r"^archive/(?P<year>[0-9]{4})", views.archive),
 | 
											
												
													
														|  | -    path('archive/<year4:year>', views.archive),
 |  | 
 | 
											
												
													
														|  | 
 |  | +    path('archive/<year4:year>', views.archive, name='archive'),
 | 
											
												
													
														|  |  ]
 |  |  ]
 |