2013-12-27 02:29:32 +08: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 11:07:14 +08:00
|
|
|
label = "myauth"
|
2013-12-27 02:29:32 +08: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 15:39:46 +08:00
|
|
|
class NotAConfig:
|
2013-12-27 02:29:32 +08:00
|
|
|
name = "apps"
|
|
|
|
|
|
|
|
|
|
|
|
class NoSuchApp(AppConfig):
|
|
|
|
name = "there is no such app"
|
2013-12-31 23:23:42 +08:00
|
|
|
|
|
|
|
|
2014-01-01 00:25:57 +08:00
|
|
|
class PlainAppsConfig(AppConfig):
|
|
|
|
name = "apps"
|
|
|
|
|
|
|
|
|
2013-12-31 23:23:42 +08:00
|
|
|
class RelabeledAppsConfig(AppConfig):
|
|
|
|
name = "apps"
|
|
|
|
label = "relabeled"
|
2020-07-12 20:59:57 +08:00
|
|
|
|
|
|
|
|
|
|
|
class ModelPKAppsConfig(AppConfig):
|
|
|
|
name = "apps"
|
|
|
|
default_auto_field = "django.db.models.BigAutoField"
|