-
Notifications
You must be signed in to change notification settings - Fork 3
For Developers
Patrick Creighton edited this page Jan 6, 2021
·
18 revisions
Explain scripts, admin page, and other commands required to edit code.
To access the admin page (to view Course
objects): Introducing the Django Admin
To load changes, save changes and refresh tab
- If
Course
fields are modified (added, renamed, deleted), the database will need to be updated: runpython manage.py makemigrations
, thenpython manage.py migrate
- If the field representations are changed without modifying the fields themselves (eg. changed
professors_info
field from dictionary to list), runpython manage.py updatecourseobjects
to refresh all the fields of allCourse
objects currently stored in the database
- If the field representations are changed without modifying the fields themselves (eg. changed
-
updatescripts.py
is used to sync locally stored data with the APIs: uncomment the code block corresponding to the desired data to sync, then run the file. These will take a while to execute. -
testscripts.py
is used to test the output of various scraper methods: uncomment the code block corresonding to the desired method(s) to test, modify the parameters as required, then run the file.