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 (str) – Image path. |
Return str: | 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