What I mean is that it's still outputting the default " 403 forbidden" and not using any custom template. If it's because default=True in my settings, why did my other custom template at "templates/registration/... displayed?
On Sun, May 24, 2020, 1:59 PM Kasper Laudrup <laud...@stacktrace.dk> wrote: > Hi Sunday, > > On 24/05/2020 13.46, sunday honesty wrote: > > Trust you're doing great guys! > > Please can someone help with the template name where 403 forbidden > message that always displays when you raise PermissionDenied. > > I want to customize the message that should display... > > I have tried > > 403.html in my registration folder inside my templates folder but it's > not working. > > > > It's hard to guess what you mean by "not working", but be aware that > custom error pages are not used when Debug is set to True in your > settings. Maybe that's why it's "not working". > > Kind regards, > > Kasper Laudrup > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/d096c046-a5ec-ebd8-2cd6-d2d9803cc8df%40stacktrace.dk > . > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALcuGNt_ZjzkKVmeQdhg768yXQeDxLGZtLqpBQY327gFkS_5dA%40mail.gmail.com.