Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.
/ dso-import Public archive

Import van historische BAG (rest gaat via dataservices-airflow)

License

Notifications You must be signed in to change notification settings

Amsterdam/dso-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

dso-import

This wil run the import for data needed in de dso-api.

For this import it uses the dynamically created models in dso-api.

For the historical bag import files need to be retrieved frm the GOB objectstore,

Therefore we need to set the GOB_OBJECTSTORE_PASSWORD:

GOB_OBJECTSTORE_PASSWORD=secret

And the database url where this should be imported :

export DATABASE_URL=postgres://dso_api:insecure@localhost:5415/dso_api

Then run the following command from the src directory:

python manage.py run_import bagh 

Or if the tables need to be recreated manually

python manage.py run_import bagh  --create

The historical bag import is meant to run with the acceptance or production database.

If not run with create tables will not be deleted and only the changed rows will be updated or new rows will be added. With the exception of the N-N table bagh_verblijfsobjectpandrelatie. That content completely replaced every time.

About

Import van historische BAG (rest gaat via dataservices-airflow)

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published