-
This project's database is using the latest
tidychampaign.csv
andgeo.csv
file uploaded by Han Bro. If you have the conflict, go to sql workbench, drop the table, and reimport thetidychampaign.csv
. It should solve the database conflict later on. -
There is a list of new package I used to build this website. Please install those:
pip install django-crispy-forms
pip install django-bootstrap-pagination
pip install django-bootstrap-toolkit
-
Please make sure you have imported all the csv files in the folder
CSVDataFile
via SQL workbench. For theCommentDB
file, after you import it, you need to change the attribute type of geoid fromint(11)
tobigint(20)
. If you don't know to alter the table. See this link: https://stackoverflow.com/questions/33094174/how-to-change-update-column-name-in-table-using-mysql-workbench -
If you create a new databse table, for the sake of convenience, you can create a sample .csv file like
CommentDB.csv
with some random data in it. Upload your sample .csv file in theCSVDataFile
.
To integrate this project, run the following command:
- Clone this project to your local machine
git clone git@github.com:Jonathan-UIUC/ICEMapping.git
- Go to the project directory
cd ICEMapping
-
Do all the stuffs in the
Importent
section. -
Migrate the changes on the databases
python manage.py makemigrations
python manage.py migrate
- Run the server
python manage.py runserver