django_opt_out.management.commands package

Submodules

django_opt_out.management.commands.opt_out_feedback_defaults module

class django_opt_out.management.commands.opt_out_feedback_defaults.Command(stdout=None, stderr=None, no_color=False)[source]

Bases: django.core.management.base.BaseCommand

add_arguments(parser)[source]

Entry point for subclassed commands to add custom arguments.

data_files = (('tags.csv', <class 'django_opt_out.resources.OptOutTagResource'>), ('feedback.csv', <class 'django_opt_out.resources.OptOutFeedbackResource'>), ('feedback-translations.csv', <class 'django_opt_out.resources.OptOutFeedbackTranslationResource'>))
handle(*args, **options)[source]

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

help = 'Imports default opt-out feedback options to empty database'
import_all()[source]
static import_data_file(name, resource)[source]

Module contents