summaryrefslogtreecommitdiff
path: root/tests/apps/apps.py
blob: 22c8f3062f3ea7c96e4448d8b825014df7d22a13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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'
    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'