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:
SmarterExamplesCommandDjango 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
baseUrlis filled in with this platform’s scheme and domain. Run it aftermanage.py add_example_secrets: the connections name its Secrets.- add_examples(user_profile)[source]
Apply the Stackademy Connections, and the manifest templates among them.
- help = 'Apply the example Connection manifests, in smarter/apps/connection/data/stackademy. Run add_example_secrets first.'