[Answer]-Django throws 404 and fails to match URLs properly

1👍

You are using \w which stands for “word character” and will not match everything. If you want create a to create a regular expression that will match all characters you need to use something like .* (check this answer https://stackoverflow.com/a/11384464/119071)

Now, I have to notice that I am not very fond of how you have specified your url patters. If I count correctly, you are defining 6 (six !) url parameters which can get any value ! Instead of doing this, I recommend adding only the required parts to your URL (probably only post_id and simpler_id) and all other parameters should be passed (correctly encoded) through the query (like this path?param1=foo&param2=bar)

Leave a comment