palewire / django-calaccess-campaign-browser

A Django app to refine, review and republish campaign finance data drawn from the California Secretary of State’s CAL-ACCESS database
http://django-calaccess-campaign-browser.californiacivicdata.org
MIT License
17 stars 12 forks source link

Could we make modifications that would no longer require users to switch DEBUG=False? #99

Closed palewire closed 9 years ago

aboutaaron commented 10 years ago

I believe the main reason for this was that how MySQL and the Django ORM talk yeah? Is there a way to flip the switch during load? That could introduce some weird bugs though. But you're right, I think it's something we need to figure out.

armendariz commented 10 years ago

The Django ORM terminates on MySQL warnings. Get those gone and you're good to go. I can't remember where in the process I got the warnings. Probably on using the ORM to load the campaign_finance app. Now that Ben's SQL queries power that you might be able to turn it off.