Go to file
ookjosh a40efe9737 Project: Add chartsjs and htmx 2025-12-12 00:14:11 -07:00
datavis Project: Add chartsjs and htmx 2025-12-12 00:14:11 -07:00
marketing Initial commit - landing page and roughing out 2025-10-28 22:35:16 -06:00
roboteyes Update models and db config 2025-12-08 23:31:43 -07:00
.gitignore Mocking some views 2025-11-13 19:57:38 -07:00
README.md Fix test data, more test views 2025-11-10 20:55:44 -07:00
manage.py Initial commit - landing page and roughing out 2025-10-28 22:35:16 -06:00
mysql.example.cnf DataModel updates, sample data ingress. Sample views 2025-11-10 07:47:55 -07:00
pyrightconfig.json Initial commit - landing page and roughing out 2025-10-28 22:35:16 -06:00
requirements.txt Project: Add django-debug-toolbar to requirements 2025-12-11 23:00:37 -07:00

README.md

Running Server

python manage.py runserver

Testing

python manage.py test [appname]

  • E.g., python manage.py test datavis

Populating with test data

Truncate all data: python manage.py flush datavis

Reset database (normal sql client):

DROP DATABASE SouthwestChickenTest;
CREATE DATABASE SouthwestChickenTest;

Then python manage.py init_test_data

Useful debugging for querying

python manage.py shell gives you a shell where you can run queries like Measurements.objects.all() or whatever filtering you'd like. See documentation for reference.

Note: To print the query that django is using (e.g., to compare to a manual query to figure out how to translate something to the django DSL):

# Example printing equivalent SQL query
q = Group.objects.filter(group2type__type__name="Windrow", child_group__parent_id=1)
print(q.query)