Follow the following steps to reset candidates/employers in the database:
-
in the terminal, launch Django's Python REPL environment:
python3 manage.py shell
-
in Python REPL:
-
To create demo users (employers or candidates), and skip for any existing demo user:
from maintenance_worker import manage_demo_users; manage_demo_users.create_demo_employers()
or
from maintenance_worker import manage_demo_users; manage_demo_users.create_demo_candidates()
-
To reset demo users (employers or candidates), discarding any current user:
from maintenance_worker import manage_demo_users; manage_demo_users.reset_demo_employers()
or
from maintenance_worker import manage_demo_users; manage_demo_users.reset_demo_candidates()
-
-
check your database for the changes.
-
in the terminal, launch Django's Python REPL environment:
python3 manage.py shell
-
in Python REPL:
from maintenance_worker import manage_jobs; manage_jobs.load_jobs()
Note: due to high volume of job postings in the vault, this command may take a few seconds to execute.
-
check your database for the changes.
Limitation: job loading script currently check duplicate records in Department
table but not the Job
table. Therefore, running this command multiple times may result in excessive records in the database.