An open API service indexing awesome lists of open source software.

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

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/)