arabic slug show 404

Again as above,

  • Did you visually verify what you’re getting as self.kwarg.get('slug'),
  • Did you verify what you get after the unquote function`?
  • Did you check to verify that that slug exists in the database for the current user?
    • Since the slug in this case should be unique, do you really need the additional user attribute in the query?

Debugging something like this involves working this through step-by-step, ensuring that everything is happening as it should at each step of the process.

Using the Django shell is very useful for checking out things like this.

1 Like