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