URLconf with prefix and callable views raises an exception
|Reported by:||Owned by:||Adrian Holovaty|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Despite what the documentation for the URLconf says, having a prefix and callable views results in an exception.
This line here is the reasoning for it. prefix will resolve to True, so it then checks prefix concatenated with the view instead of skipping straight to passing the view. You can't concantenate a string and a function, so an exception is thrown.
Change History (5)
comment:1 Changed 10 years ago by
|Summary:||URLconf with prefix and callable views. → URLconf with prefix and callable views raises an exception|
|Triage Stage:||Unreviewed → Accepted|