elgeopaso.jobs.management.commands.csv2db module

Command used to import a CSV from a Georezo database export.

python manage.py csv2db --input-csv ./georezo/georezo_db_backup_2016-2017.csv
class elgeopaso.jobs.management.commands.csv2db.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases : django.core.management.base.BaseCommand

add_arguments(parser)[source]

Entry point for subclassed commands to add custom arguments.

args = '<foo bar ...>'
create_parser(*args, **kwargs)[source]

Create and return the ArgumentParser which will be used to parse the arguments to this command.

handle(*args, **options)[source]

The actual logic of the command. Subclasses must implement this method.

help = 'Import CSV data into the project database'
import_georezo_backup(input_csv_path)[source]

TO DOC

Paramètres

input_csv_path (path) –