Skip to content

gcivil-nyu-org/fall2019-cs-gy-6063-team-one

Repository files navigation

Team Project repo

Master: Build Status on Master Coverage Status on Master

Develop: Build Status on Develop Coverage Status on Develop

Maintenance

Demo users

Follow the following steps to reset candidates/employers in the database:

  1. in the terminal, launch Django's Python REPL environment:

    python3 manage.py shell
  2. in Python REPL:

    1. 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()
    2. 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()
  3. check your database for the changes.

Jobs and Departments

  1. in the terminal, launch Django's Python REPL environment:

    python3 manage.py shell
  2. 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.

  3. 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.