Hi,
Do I have to use register_converter in any file using it? I have a project with many urls.py files, and I want to register converters which will be used in multiple files. How do I register them? Do I have to register them in all the urls.py files? And where in my project should I put the converters definitions?
Also, can I register a converter with the name "slug"? (which is also defined by Django). I want to define "slug" as any string containing letters a-z, A-Z, digits 0-9,
"-", ".", or "_" (the 2 latest characters will be redirected to "-"). for example the paths "/uri_rodberg/" and "/uri.rodberg/" will be redirected to "/uri-rodberg/". And not to use the Django-defined "slug".
I also want to define "digits" as any sequence of digits 0-9, but it's a string - not an integer. For example an ID of a user or entity. It can start with any numbers of leading zeros.