2013-12-26 18:29:32 +00:00
|
|
|
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'
|
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."""
|
|
|
|
|
|
|
|
|
|
|
|
class NotAConfig(object):
|
|
|
|
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'
|