Slugify migration for projects moving from markata<0.5.0 into markata>=0.5.0

to run this script install markata>=0.5.0 and run the following.


python -m markata.scripts.migrate_to_slugify

Then make sure that you do not explicity turn off slugify and your site is going to be on to better urls.


[markata]
slugify=false

routed_slugify function

routed_slugify source


        def routed_slugify(text):
            return "/".join([slugify(s) for s in text.split("/")])