This guide explains how to import large amounts of Student and Book data into the GECDahod Library System using CSV files.
You must use a .csv format. You can create these in Microsoft Excel and use "Save As -> CSV (Comma delimited)".
File Name Example: students_data.csv
Required Headers (First Row):
enrollment_id: Unique ID for the student (Primary Key)name: Full nameemail: College or personal emailmobile_no: Contact numberdepartment: (e.g., Computer, Mechanical, Civil, Electrical)
Example Row:
230180107045,Pavan Kumar,pavan@example.com,9876543210,Computer
File Name Example: books_data.csv
Required Headers (First Row):
access_code: Unique barcode/Access Code for the book (Primary Key)title: Name of the bookauthor: Name of the author (Can be empty)shelf_location: Where the book is kept (e.g., A-1, CS-Section)
Example Row:
BK-001,Introduction to Algorithms,Cormen,A-1
Open your terminal (PowerShell or CMD) in the project folder and run:
python manage.py import_data students "C:\path\to\your\students.csv"python manage.py import_data books "C:\path\to\your\books.csv"- Duplicate Detection: The system will automatically check if an
enrollment_idoraccess_codealready exists. It will skip duplicates and show a warning, so you don't have to worry about adding the same data twice. - Exact Headers: The first row of your CSV must match the headers mentioned above exactly (lowercase).
- Empty Values: Ensure
enrollment_idandaccess_codeare never empty. Other fields likeauthorcan be blank if needed. - Encoding: If you have special characters, save your CSV with UTF-8 encoding.
For technical support, contact the system administrator.