Domains Tool

This app registers and hosts a new domain automatically, adding the new domain to the hosted_apps table.

Code Documentation

class domains.main.Status(value)[source]

An enumeration.

domains.main.set_status(domain: str, status: domains.main.Status)[source]

Updates the status for a domain name

Parameters
  • domain (str) – domain name

  • status (Status) – new status of domain

Returns

None

domains.main.add_domain(app, is_staging, course, domain)[source]

Adds domain to hosted_apps table and hosts new domain

Parameters
  • app (str) – “auth”

  • is_staging (boolean) – whether app is staging or not

  • course (str) – course name

  • domain (str) – domain name

Returns

None or Error