-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
There are a bunch of scripts in the scripts/ directory of the project which can be used to populate the initial data when setting up this project by running python3 manage.py shell < scripts/add_batch.py command (for example).
However, these scripts are stored in many files, which can be confusing to users as to which scripts to run and in what order. Also, the add_data.py script is not working right now and the user data in acc.xlsx is also old and very few.
So, we need to do the following:
- Create a parent script named
populate.py, which is the only script the user would need to run while populating the database. Inside this script, import the function from other individual scripts and run them (in the order they should be run). - Update
acc.xlsxfile to include some more dummy data, andadd_data.pyfile to be able to use the Excel file and populate the data into the database.
Out of all the scripts currently present in the scripts/ directory, add_batch.py and add_data.py are the only two important scripts. And the logic for creating profile.reg_no should be included in the add_data.py file only.
Metadata
Metadata
Assignees
Labels
No labels