Management Commands

Apply the example Connection manifests: the Stackademy SqlConnection and ApiConnection.

class smarter.apps.connection.management.commands.add_example_connections.Command(*args, **kwargs)[source]

Bases: SmarterExamplesCommand

Django manage.py add_example_connections command.

Applies the Connection manifests in smarter/apps/connection/data/stackademy: the SqlConnection to the Stackademy test database, and the ApiConnection to this platform’s Stackademy course catalogue, a manifest template whose baseUrl is filled in with this platform’s scheme and domain. Run it after manage.py add_example_secrets: the connections name its Secrets.

add_examples(user_profile)[source]

Apply the Stackademy Connections, and the manifest templates among them.

Return type:

list[str]

family: str = 'Connection'

The resources’ name, for the command’s output, e.g. "Secret".

help = 'Apply the example Connection manifests, in smarter/apps/connection/data/stackademy. Run add_example_secrets first.'