datamade / django-councilmatic

:heartpulse: Django app providing core functions for *.councilmatic.org
http://councilmatic.org
MIT License
26 stars 16 forks source link

Hit the canonical API urls (not redirects) when running loaddata #59

Closed patcon closed 8 years ago

patcon commented 8 years ago

Currently, we hit the OCD API urls without a trailing slash, for which an error is thrown on the API backend as django redirects to the slashed url. This creates a bunch of misleading noise in the logs.

2:10:49 PM web.1 |  WARNING Not Found: /ocd-bill/e91f4ef5-e8ca-46f2-901c-97ecc35a1931
2:10:49 PM web.1 |  WARNING Not Found: /ocd-bill/a1f7e698-c812-46ff-950c-b36bdfaee7c1
2:10:49 PM web.1 |  WARNING Not Found: /ocd-bill/f6c3aa0b-fd2a-46d1-9663-14bf3e15d5a5
2:10:49 PM web.1 |  WARNING Not Found: /ocd-bill/5a2b0f9a-2c3a-4d41-8cd9-aba2e34b7d90
2:10:50 PM web.1 |  WARNING Not Found: /ocd-bill/703630e2-d050-4048-9b8b-b71ee3d33d42
2:10:50 PM web.1 |  WARNING Not Found: /ocd-bill/3da76c6b-09c5-4a03-9dd3-23a26d8739e4
2:10:50 PM web.1 |  WARNING Not Found: /ocd-bill/28cb5a12-57f2-40cf-8bc2-f132cf52290e
2:10:50 PM web.1 |  WARNING Not Found: /ocd-bill/05eaa39e-d9a0-4574-8ddc-70a9997be4a6
2:10:50 PM web.1 |  WARNING Not Found: /ocd-bill/89c760b3-0ecd-4226-a744-99ab1ff5daa6
cathydeng commented 8 years ago

thanks! :v: