Mahahiki implements the following Django management commands to facilitate setup and management of challenges.
These management commands are used by developers for testing enhancements to the system and debugging.
Invocation: python manage.py clear_cache
Clear all content in the Makahiki cache.
Invocation: python manage.py clear_log
Clear all content in the Makahiki log table.
Invocation: python manage.py clear_session
Delete all persistent web sessions. Use this to clean up any invalid session references.
These management commands are used to set up a challenge.
Invocation: python manage.py verify_quests
Verifies that all of the existing quest lock and unlock condition strings are valid. Prints out the names of any invalid quest conditions.
These management commands are used by administrators to facilitate the running of a challenge.
Invocation: python manage.py update_energy_baseline
update the daily baseline.
These management commands are typically invoked automatically during a challenge in order to manage resource and game data.
Invocation: python manage.py update_energy_usage
For each team, queries WattDepot server to find out cumulative energy usage from midnight to now. Used for updating the status of the Energy Goal Game.
Invocation: python manage.py check_energy_goal
Checks whether or not each team made their energy goal, and awards points to team members if it’s at the end of the day.
Invocation: python manage.py check_water_goal
Checks whether or not each team made their water goal, and awards points to team members if it’s at the end of the day.