{% extends 'imports/base-site.html' %} {% import 'macros/table_from_pandas.html' as table_from_pd %} {% import 'macros/forms.html' as forms %} {% from 'imports/macros/form.html' import map_columns_form %} {% block content2 %}
Below you see the first five rows of the uploaded data. This is the starting point for the import. Please choose a column mapping further below and update to see how these rows will be imported.
{{ table_from_pd.table_from_pandas(table.head()) }}Below, you find all fields present in the database. Please select from the dropdown menu the column in the uploaded file that should be mapped to the respective field.
{{ map_columns_form(form, '') }}Once you have selected the correct column mapping (and saved it by clicking on 'Update mapping'), you can try to import the rows of your file to the database.
Import to database {% for error in errors %} {{ error }} {% endfor %}