0
0
mirror of https://github.com/django/django.git synced 2024-11-29 22:56:46 +01:00
django/tests/apps/apps.py
2013-12-27 21:06:28 +01:00

26 lines
502 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'
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'