rapidpro / chpro-microsite

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

404 + 500 Pages #47

Closed mtrythall closed 6 years ago

mtrythall commented 6 years ago

We need some help 404 and 500 pages.

sodevious commented 6 years ago

Pushed templates. Not sure if anything else needs to be done in the backend to have these templates render.

mtrythall commented 6 years ago

Yup, I think @SmileyChris needs to do something. Forgot/Can't remember if we need special views. Passing to him.

SmileyChris commented 6 years ago

The templates are rendered when debug mode is off. You can test in a development enviroment with two new urls I added: /404/ and /500/.

There was an issue with rendering with sekizai_tags on the 500 page (it uses an empty context), but it didn't look like we were actually using this functionality so I just switched it back to a standard django {% block %} tag for the js and css blocks.