Django Custom 404 Page

Default Django 404 page
Custom 404 Page
os.path.join(BASE_DIR, 'myapp', 'template')
DEBUG = FalseALLOWED_HOSTS = [‘127.0.0.1’]
myapp/templates/404.html
myapp/views.py
myproject/urls.py

--

--

--

Software Engineer, Indonesia

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Pandas DataFrame to PostgreSQL using Python!! Part 1

MR Reporting Software: Geo-Fencing & Geo-Tagging

Running GUI Applications inside Docker Containers

Movement in Unity — always the best part!

The many ways of polyglot programming with GraalVM

Reactive Spring Data Elasticsearch with Spring Boot

Inter-Integrated Circuits — I2C Basics (Part 3)

Tips and tricks to know when playing Super Slither on Tokenplay

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Adi Ramadhan

Adi Ramadhan

Software Engineer, Indonesia

More from Medium

[Django] Django development notes (2) Templates

Working with Django Model Forms

Django Forms Unchained