Command

This module contains command for create files types and files extensions in FileExtension and FileTypes tables from storageapp

class times.management.commands.create_times_tables.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: BaseCommand

This class contains command for create files types and files extensions in FileExtension and FileTypes tables from storageapp.

The class has the following attributes:

  • help (str): A message that is displayed when you this command

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

The handle function is the entry point for a Django management command.

Returns:

A string that is printed in the console

help = "use 'python manage.py create_times_tables' to create tables"
times.management.commands.create_times_tables.create_tables()[source]

The create_tables function creates the tables in the database.

Returns:

None