dash.contrib.plugins.news.management.commands package

Submodules

dash.contrib.plugins.news.management.commands.news_create_test_data module

class dash.contrib.plugins.news.management.commands.news_create_test_data.Command[source]

Bases: django.core.management.base.BaseCommand

Populating dummy news items.

handle(*args, **options)[source]
dash.contrib.plugins.news.management.commands.news_create_test_data.build_image_factory()[source]

Downloads the https://github.com/barseghyanartur/delusionalinsanity.images/archive/latest.zip locally, unpacks it to grab the images. Then makes a list of all the images.

Return list:List of relative paths to images.
dash.contrib.plugins.news.management.commands.news_create_test_data.change_date()
dash.contrib.plugins.news.management.commands.news_create_test_data.fix_image(image)[source]

Fixes the image path.

Parameters:image (string) – Image path.
Return string:Fixed image path.
dash.contrib.plugins.news.management.commands.news_create_test_data.split_sentences(f)
dash.contrib.plugins.news.management.commands.news_create_test_data.split_words(f)

Module contents

Read the Docs v: 0.3.2
Versions
latest
0.3.2
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.