No reverse match at /

12 views
Skip to first unread message

Bhanu prasad Ch

unread,
Jul 6, 2021, 9:09:15 AM7/6/21
to Django users
I had a problem in passing special characters in Charfield in DB of Django.
Is that possible to pass special characters in CharField DB?
GitHub Issue

DJANGO DEVELOPER

unread,
Jul 6, 2021, 9:12:56 AM7/6/21
to Django users
you have to provide id in your urls and in subject.html as well. share you views and url as well.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b57636e3-35c4-4798-abe3-b6f97576a53fn%40googlegroups.com.

Julio Cojom

unread,
Jul 6, 2021, 9:36:57 AM7/6/21
to django...@googlegroups.com
For what I can see in the issue, you're passing 2 values to the url (id , topic)

Maybe the error its for the topic because of the value (/Subject/Django) try to sanitize the value after store it in the database, because it try to get the url example.com/3//Subject/Django where 3 its the id or pk and /Subject/Django its the topic, for the web server it may be confusing. You can sanitize the value for something like slug field (django slug field docs). Even better, I suggest add slug field to the model and leave the topic off the url.

Regards

Reply all
Reply to author
Forward
0 new messages