page_not_found(request):
return render(request, "pages/404.html")
my working url is localhost:8000/en
when my DEBUG = True and I send get request to localhost:8000 it redirects to localhost:8000/en
but when my DEBUG=False and I send get request to localhost:8000 it show 404
QUESTION: Can I make exception or redirect to my working url in my 404 view?
Hello! You should be write in urls.py(main) index page. Try it.
You can write in English Django chat https://t.me/django
Обсуждают сегодня