Django uses regular expressions to match incoming requests. In python, a period (.) Matches any character except a newline. See docs for more details and try:
(r'^checkstring/(?P<string>.+)/$',views.check_str,name='check str')
Also keep in mind that this will accept any character (including a slash) that might be undesirable for you. Be sure to check that everything works as you expected.
source share