Can you show us what function is raising the exception? Is it home_slug,
or redirect? What happens if you use: return redirect("/") ?
On 2017-11-22 7:59 PM, Tom Tanner wrote:
In one of my views, I have this:
|
frommezzanine.utils.urls importhome_slug
defmyView(request):
# Some code...
returnredirect(home_slug())
|
This gives me the error: `TypeError: 'str' object is not callable`. Am
I supposed to use `home_slug()` to redirect to home page in this case?
If not, how else do I redirect to the home page? I have not
touched/edited the urlpattern for the default home page in `urls.py`.
--
You received this message because you are subscribed to the Google
Groups "Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Mezzanine
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.