django custom 404 not found page -


i want create custom not found page. but, can see default django not found template. i'm doing wrong ?

notfound.html

{% extends "account/base.html" %} {% load crispy_forms_tags %} {% load i18n %} {% load account socialaccount %}  {% block head_title %}{% trans "page not found" %}{% endblock %}  {% block content %}  <div class="col-md-4 col-md-offset-4">     <div class="jumbotron" style="margin-top:50px;opacity:0.90">      <h1 class="text-center" style="color:#a12830">4+800:2</h1>     <h3 class="text-center">web page not found</h3>     <div style="text-align: center">         <a href="{% url 'home' %}">main menu</a>     </div> </div> {% endblock %} 

urls.py

from django.conf.urls import (handler400, handler403, handler404, handler500) 

make sure first set debug=false in setting file. , need change html name 404.html , locate in root directory of project.


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -