User Tours are walkthroughs we are able to give in our frontends. This sets up the backend support for them by creating the model, setting up the initial backfill, adds in a signal handler to init the UserTour model on User creation, and sets up some endpoints to get user tour information and update it. It is also being initialized with a waffle flag to control the rollout. The flag is intended to control all tours and not allow for opting into only some tours.
14 lines
404 B
Python
14 lines
404 B
Python
""" User Tour application configuration. """
|
|
|
|
from django.apps import AppConfig
|
|
|
|
|
|
class UserTourConfig(AppConfig):
|
|
""" User Tour application configuration. """
|
|
name = 'lms.djangoapps.user_tours'
|
|
|
|
def ready(self):
|
|
""" Code to run when getting the app ready. """
|
|
# Connect signal handlers.
|
|
from lms.djangoapps.user_tours import handlers # pylint: disable=unused-import
|