Custom 404 Page in Django | handler404 | 404 Error

Поделиться
HTML-код
  • Опубликовано: 29 ноя 2024

Комментарии • 12

  • @Jourvence777
    @Jourvence777 Год назад +7

    I'm so tired that I wanted to comment about how loud your music is, then I realised It's mine

  • @abishekvijayan7206
    @abishekvijayan7206 4 месяца назад +1

    thnks a lot bro
    i hope you do more like this

  • @fadhilkhan830
    @fadhilkhan830 3 месяца назад

    thanks mate . need more videos like this

  • @incrediblemhi
    @incrediblemhi Год назад +1

    greate video

  • @paperplaneinthehorizon
    @paperplaneinthehorizon Год назад

    Awesome. Thanks!

  • @itzcallmepro4963
    @itzcallmepro4963 2 года назад +2

    it's Not Working with me i can't figure why i did exxactly the same as u did , but while iam supposed to get error 404 iam getting 500 , i tried searching for it , and Solns say that my website can't see 404 page so it's getting 500

    • @MagnusAnand
      @MagnusAnand Год назад

      I had the same error. The problem I HAD was not providing the correct template location.

  • @fredj737
    @fredj737 9 месяцев назад

    Thanks brother.

  • @kemueltkd
    @kemueltkd Год назад

    thanks for the video.

  • @hahauw3
    @hahauw3 4 месяца назад

    After Removing this ["*"] this * its works btw thanks

  • @waltradeekene
    @waltradeekene Год назад +1

    if i set my debug to false it breaks my static files DEBUG = False
    ALLOWED_HOSTS = ['*']

    • @thinkthank6545
      @thinkthank6545  Год назад +1

      To access the static files in production environment, you should serve it as a url. In order to do that.
      Inside urls.py:
      from django.urls import re_path
      from django.views.static import serve
      urlpatterns = [
      ...
      ...
      re_path(r'^static/(?P.*)$', serve,{'document_root': settings.STATIC_ROOT}),
      ]
      I hope that you are having static files inside a folder named "static"