1👍
✅
What is the valid characters in the Post.uid? Your question has two examples u'CHacFvE_'
from the error message and {u'uid': u'-lTmOw__'}
in the stack trace.
If you want both underscores and dashes to be valid in uid, you must change the regex.
^posts/(?P<uid>[-\w]+)$
explanation: https://regex101.com/r/1E2WVY/1
- NoReverseMatch Defining keyword arguments in reverse not working
- Django : How to give parameters to {% url %} tag in javascript function which will be used in FOR loop?
- Django queryset – classify and filter by value
- Django URL from HTML search form
Source:stackexchange.com