elgeopaso.jobs.management.commands.rss2db module

Custom Django management command to parse GeoRezo feed and launch analisis. See: https://docs.djangoproject.com/fr/2.2/howto/custom-management-commands/

class elgeopaso.jobs.management.commands.rss2db.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases : django.core.management.base.BaseCommand

Commands to manage offers sync and analisis.

Two main steps:

  1. Crawl GeoRezo RSS to get new offers, analyze it and store into the database.

  2. Relaunch offer analisis on offers which have been manually modified (through the admin)

Paramètres

BaseCommand ([type]) – [description]

Lève

ValueError – [description]

Renvoie

[description]

Type renvoyé

[type]

add_arguments(parser)[source]

Add arguments to the CLI.

Paramètres

parser (CommandParser) – command parser

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

Super a command parser.

Renvoie

[description]

Type renvoyé

CommandParser

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

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

help = 'Commands to manage offers sync and analisis. 2 main steps:\n        1. Crawl GeoRezo RSS to get new offers, analyze it and store into\n        the database.\n\n        2. Relaunch offer analisis on offers which have been manually\n        modified (through the admin)'
now = <Arrow [2022-12-12T14:22:34.308302+01:00]>