[Fixed]-Django redirect to url in other app with kwargs

1👍

slugify has a tendency to turn spaces into hyphens so chances are you need to include that into your url

^account/(?P<pk>\d+)/(?P<name>[\w-]+)/$

Note: This would only be the issue if ‘Fake Company’ is example data or the error you’re showing is what appeared from when you were using the commented out line

The reason slugify does this is because url’s can’t contain spaces and instead they are turned into %20‘s, which look ugly.

👤Sayse

Leave a comment