gannonprudhomme / AutoScheduler

Basics for A&M auto course scheduler
0 stars 0 forks source link

Auto-Scheduler

Install

Follow these steps to start a local Django server using a PostgreSQL database: 1) If you don’t have it already, download Python from here. 2) To install the packages, you first need to make a virtual environment for Python, which will help us ensure that our libraries & Python versions are unified. You can do so be by running:

Running

The only thing set up currently is scraping a single department worth of courses(CSCE) and scraping all of the departments.

To do these,

1) If you're not running in the virtual environment(you should see (env) somewhere in your current terminal line), run source env/bin/activate or ./env/Scripts/activate 2) Run cd autoscheduler 3) Run ./manage.py makemigrations and ./manage.py migrate to generate SQL that will be used to fill the database. 4) Run ./manage.py createsuperuser to create a user for Django. 5) Run ./manage.py scrape_dept to scrape all of the available departments. 6) Run ./manage.py scrape_courses to scrape the courses, sections, and instructors.

If ./manage.py isn't working, try to use python manage.py or python3 manage.py in place of it.