This is not a full Django project, just an app to be included in an existing project. Visit this project here
- Download (probably within a virtual environment used for an existing project):
pip install git+https://github.com/govex/housing_affordability.git
- Add to INSTALLED_APP of the Django Project settings module:
# djangoproj/settings.py
INSTALLED_APPS = [
...
'housing_affordability',
...
]
- Add to Django Project urls module:
# djangoproj/urls.py
urlpatterns = [
...
path('analysis/housing/', include('housing_affordability.urls')),
...
]
-
Add a link to your template where ever appropriate (possibly a nav bar) that links to
/analysis/housing/
. -
Set up database (or use existing project database) and run migrations.
-
Populate database:
python manage.py load_housing_govs
andpython manage.py load_housing_demos
- Continue to add, improve, and explain visualizations and UI/UX.
- Clean up css which has a lot of unnecessary stuff because it was mostly grabbed from a different project.
- If possible, set up URLs in templates to be robust to prefix from Project URLs (eg
/analysis/housing
in setup step 3) - Expand set up step 5 to explain database setup
- Update requirements in setup.py. The existing ones are a first guess and there may be more.
- Expand TODO