from django.apps import AppConfig
class RickNMortyConfig(AppConfig):
name = "rick_n_morty"
verbose_name = "Rick and Morty”
def ready(self):
from my_app import signals
# my_app/apps.py
Slide 21
Slide 21 text
• Loads the settings
• Sets up logging
• Initializes the
application registry
Slide 22
Slide 22 text
• Imports each item from
INSTALLED_APPS
• Imports the models submodule
if exists
• Runs the ready() method of
each app config