Monday, March 13, 2023

Slug

 Django # 14 introduces a minor, but necessary adjustment to the blog project:

making sure the slugs are appropriate. What is a slug: it is the last part of a page's

web address. It should not contain any blank spaces, but our project letting

the user create blog categories could have introduced these. The solution: letting

the user name his category with a space, slugifying so that there is a dash introduced

when making the address, making the dash disappear in the blog page that 

is later shown...


                                                        







No comments: