mirror of
https://github.com/django/django.git
synced 2024-12-30 13:05:45 +00:00
29ddae7436
Thanks Aymeric for design discussion.
36 lines
659 B
Python
36 lines
659 B
Python
from __future__ import unicode_literals
|
|
|
|
from django.apps import AppConfig
|
|
|
|
|
|
class MyAdmin(AppConfig):
|
|
name = 'django.contrib.admin'
|
|
verbose_name = "Admin sweet admin."
|
|
|
|
|
|
class MyAuth(AppConfig):
|
|
name = 'django.contrib.auth'
|
|
label = 'myauth'
|
|
verbose_name = "All your password are belong to us."
|
|
|
|
|
|
class BadConfig(AppConfig):
|
|
"""This class doesn't supply the mandatory 'name' attribute."""
|
|
|
|
|
|
class NotAConfig(object):
|
|
name = 'apps'
|
|
|
|
|
|
class NoSuchApp(AppConfig):
|
|
name = 'there is no such app'
|
|
|
|
|
|
class PlainAppsConfig(AppConfig):
|
|
name = 'apps'
|
|
|
|
|
|
class RelabeledAppsConfig(AppConfig):
|
|
name = 'apps'
|
|
label = 'relabeled'
|