https://github.com/ioanzicu/batch_loading_one-to-many_data_model
Unesco Batch Loading One-to-Many Data using Django
https://github.com/ioanzicu/batch_loading_one-to-many_data_model
batch data django sqlite3
Last synced: about 2 months ago
JSON representation
Unesco Batch Loading One-to-Many Data using Django
- Host: GitHub
- URL: https://github.com/ioanzicu/batch_loading_one-to-many_data_model
- Owner: ioanzicu
- Created: 2021-10-18T08:59:02.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-18T08:59:27.000Z (over 4 years ago)
- Last Synced: 2025-03-23T22:40:55.545Z (over 1 year ago)
- Topics: batch, data, django, sqlite3
- Language: Python
- Homepage:
- Size: 712 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# Batch Loading One-to-Many Data Model
Navigate into the `batch` folder
cd batch
Install django extenstions
pip install django_extensions
Check if there are no errors
python manage.py check
Makemigration - create the migration python files based on the model.py file structure
python manage.py makemigrations
Migrate - create/update the database structure/scheme based on the migration python files
python manage.py migrate
Run the script
python3 manage.py runscript many_load
## Check the data in the admin interface
python manage.py createsuperuser
And enter the username and password
Then go to localhost: 127.0.0.1/admin
## Check the data in the DB Browser SQLite
Download and install the software from [https://sqlitebrowser.org/](https://sqlitebrowser.org/)