civictechdc / ancfinder

A website about DC's Advisory Neighborhood Commission system.
http://ancfinder.org/
Creative Commons Zero v1.0 Universal
43 stars 36 forks source link

404 Error on Multiple Links & Debug Active in Production #180

Open ilyagerner opened 5 years ago

ilyagerner commented 5 years ago

There are five 404 errors on the current ANCFinder build: http://ancfinder.org/static/ancs.json http://ancfinder.org/feeds/ancfinder.ics (*) http://ancfinder.org/feeds/ancfinder.rss (*) http://ancfinder.org/share (*) http://ancfinder.org/static/meetings.json

Of these, the 3 asterisked links are the most troubling because they lead to Django's Debug page, which needs to be turned off in production. Strangely, the settings.py file does have a line that is supposed to turn off debug in a production environment, but we're still getting this error.

A related issue is that we have several links hard-coded into the html templates rather than using Django's templating language (which should make link rot less likely).