title: Custom 404 and 500 pages in django with -> DEBUG = True
body: <p>I want to present the sample of my website to a client and it isn't quite finished yet but it is very important for me to hide the errors and to not show my codebase which django does if a server error occurs in development mode. Like so - <a href="https://i.stack.imgur.com/a9fDj.png" rel="nofollow noreferrer">Django depicting what went wrong</a></p>
  
  <p>Also I cannot turn DEBUG = False as in that case the media files aren't displayed as they are currently being served locally. Which won't be served if DEBUG = False.</p>
  
  <p><strong>So is there a way to serve media files locally with DEBUG = False or to display custom 404 and 500 pages with DEBUG = True.</strong></p>