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

document server deployment #113

Closed aboutaaron closed 9 years ago

aboutaaron commented 10 years ago
techieshark commented 10 years ago

Not sure if this is related to this particular issue, but I found that while running on a mac which had mysql installed via homebrew, the following was required:

export C_INCLUDE_PATH=/usr/local/Cellar/mysql/5.6.19/include/mysql/

before running

pip install django-calaccess-campaign-browser 
palewire commented 10 years ago

Huh, that's very interesting. Thank you for sharing. Any other problems in the install? I'm interested to hear more.

techieshark commented 10 years ago

@palewire no errors per se, but I haven't done much django before so I'm a little confused about what the quickest way to get something up and running is.

I was reading the How to use it docs and got to

$ pip install django-calaccess-campaign-browser

Add this campaign_finance app as well as the underlying calaccess app that contains the raw government database it will work with to refine to your Django project’s settings.py file:

but by that it sounds like I should have a preexisting Django project to add this too, and I don't have one. I wonder if it would make sense to have a little github project for a starter Django app that already has INSTALLED_APPS set correctly in the settings file, or just a pointer in the documentation to instructions on how to get started with the Django app.

palewire commented 10 years ago

It's not conventional for Django apps to include all that extra code, but I think you're right that the instructions should either explain how to create a starter "project" or at least link to one of the zillion other places on the web that do a good job explaining it. I'll make a ticket.

palewire commented 9 years ago

I think we've got a good running start for this over at the new bootstrap repository so I'm going to close this and assume we'll continue this work over there.