How to make Django slugify work properly with Unicode strings?

后端 未结 8 1840
猫巷女王i
猫巷女王i 2020-11-28 19:58

What can I do to prevent slugify filter from stripping out non-ASCII alphanumeric characters? (I\'m using Django 1.0.2)

cnprog.com has Chinese character

8条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-28 20:21

    You might want to look at: https://github.com/un33k/django-uuslug

    It will take care of both "U"s for you. U in unique and U in Unicode.

    It will do the job for you hassle free.

提交回复
热议问题