kastielspb

Custom app config

Oct 21st, 2020
602
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # apps/cart/__init__.py
  2. default_app_config = 'apps.cart.apps.CartConfig'
  3.  
  4. # apps/cart/apps.py
  5. from django.apps import AppConfig
  6. from django.utils.translation import pgettext_lazy
  7.  
  8.  
  9. class CartConfig(AppConfig):
  10.     name = 'apps.cart'
  11.     verbose_name = pgettext_lazy("cart", "Cart")
RAW Paste Data