RE: have a URL that accepts all characters

22 views
Skip to first unread message

dupakoor kannan

unread,
Sep 7, 2021, 2:10:50 AM9/7/21
to django...@googlegroups.com
Hello everyone,

I want a URL that accepts all characters. I found an example in stackoverflow https://stackoverflow.com/a/11384464. As per the answer, I need to use 'u' so that the string accepts unicode characters.

Here is my path. I use re_path.

 re_path(r'mutant_proteins/(?P<protein_name>[\w.*]+)/$',views.mutant_proteins,
            name="mutant_proteins",),

How can I use it so that it accepts unicode characters in the url ? I use Django 3.2.

Thanks

Kannan
Reply all
Reply to author
Forward
0 new messages