| 1 |
from django.apps import AppConfig |
| 2 |
|
| 3 |
|
| 4 |
class MyAdmin(AppConfig): |
| 5 |
name = "django.contrib.admin" |
| 6 |
verbose_name = "Admin sweet admin." |
| 7 |
|
| 8 |
|
| 9 |
class MyAuth(AppConfig): |
| 10 |
name = "django.contrib.auth" |
| 11 |
label = "myauth" |
| 12 |
verbose_name = "All your password are belong to us." |
| 13 |
|
| 14 |
|
| 15 |
class BadConfig(AppConfig): |
| 16 |
"""This class doesn't supply the mandatory 'name' attribute.""" |
| 17 |
|
| 18 |
|
| 19 |
class NotAConfig: |
| 20 |
name = "apps" |
| 21 |
|
| 22 |
|
| 23 |
class NoSuchApp(AppConfig): |
| 24 |
name = "there is no such app" |
| 25 |
|
| 26 |
|
| 27 |
class PlainAppsConfig(AppConfig): |
| 28 |
name = "apps" |
| 29 |
|
| 30 |
|
| 31 |
class RelabeledAppsConfig(AppConfig): |
| 32 |
name = "apps" |
| 33 |
label = "relabeled" |
| 34 |
|
| 35 |
|
| 36 |
class ModelPKAppsConfig(AppConfig): |
| 37 |
name = "apps" |
| 38 |
default_auto_field = "django.db.models.BigAutoField" |