I am trying to pass the argument 'string' for a view with a url. Urls.py url is sent
('^add/(?P<string>\w+)', add ),
I'm having problems with lines, including punctuation, newlines, spaces, etc. I think I need to change \ w + to something else. Basically, the string will be copied by the user from the text of his choice, and I do not want to change it. I want to accept any character and special character so that the view acts exactly on what the user copied.
How can I change it?
Thank!
, -, , URL-. ? . Django, , , .
?
-, re, , URL-. \w , _ ( , , , ).
\w
_
URL- (.. ?paramName= URL- , , +).
?paramName=
+
, , URL-, URL-.
, URL-:
(?P<string>[\w\-]+)
""; URL- (: "this-is-my_slug" )