2013-12-26 18:29:32 +00:00
|
|
|
from django.apps import AppConfig
|
|
|
|
|
|
|
|
|
|
|
|
class MyAdmin(AppConfig):
|
|
|
|
name = 'django.contrib.admin'
|
|
|
|
verbose_name = "Admin sweet admin."
|
|
|
|
|
|
|
|
|
|
|
|
class MyAuth(AppConfig):
|
|
|
|
name = 'django.contrib.auth'
|
2014-01-25 03:07:14 +00:00
|
|
|
label = 'myauth'
|
2013-12-26 18:29:32 +00:00
|
|
|
verbose_name = "All your password are belong to us."
|
|
|
|
|
|
|
|
|
|
|
|
class BadConfig(AppConfig):
|
|
|
|
"""This class doesn't supply the mandatory 'name' attribute."""
|
|
|
|
|
|
|
|
|
2017-01-19 07:39:46 +00:00
|
|
|
class NotAConfig:
|
2013-12-26 18:29:32 +00:00
|
|
|
name = 'apps'
|
|
|
|
|
|
|
|
|
|
|
|
class NoSuchApp(AppConfig):
|
|
|
|
name = 'there is no such app'
|
2013-12-31 15:23:42 +00:00
|
|
|
|
|
|
|
|
2013-12-31 16:25:57 +00:00
|
|
|
class PlainAppsConfig(AppConfig):
|
|
|
|
name = 'apps'
|
|
|
|
|
|
|
|
|
2013-12-31 15:23:42 +00:00
|
|
|
class RelabeledAppsConfig(AppConfig):
|
|
|
|
name = 'apps'
|
|
|
|
label = 'relabeled'
|
2020-07-12 12:59:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
class ModelPKAppsConfig(AppConfig):
|
|
|
|
name = 'apps'
|
|
|
|
default_auto_field = 'django.db.models.BigAutoField'
|