From 4d1bd790a60fe625c2015ac0ccf4c455ec4b0b04 Mon Sep 17 00:00:00 2001 From: Dmitriy Shesterkin Date: Mon, 22 May 2017 22:29:45 +0300 Subject: [PATCH] apps name --- src/callback/__init__.py | 2 ++ src/callback/apps.py | 8 ++++++++ src/customer/apps.py | 2 ++ src/docs/__init__.py | 3 ++- src/docs/apps.py | 8 ++++++++ src/dokumentor/urls.py | 7 +++++-- src/myauth/apps.py | 2 ++ src/yandex_money/__init__.py | 2 ++ src/yandex_money/apps.py | 9 +++++++++ 9 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 src/callback/apps.py create mode 100644 src/docs/apps.py create mode 100644 src/yandex_money/apps.py diff --git a/src/callback/__init__.py b/src/callback/__init__.py index e69de29..ecedd11 100644 --- a/src/callback/__init__.py +++ b/src/callback/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +default_app_config = "callback.apps.CallbackConfig" diff --git a/src/callback/apps.py b/src/callback/apps.py new file mode 100644 index 0000000..235138d --- /dev/null +++ b/src/callback/apps.py @@ -0,0 +1,8 @@ +# -*- coding: utf-8 -*- +from django.apps import AppConfig + + +class CallbackConfig(AppConfig): + name = 'callback' + verbose_name = 'Обращения' + diff --git a/src/customer/apps.py b/src/customer/apps.py index 48db4f3..e338561 100644 --- a/src/customer/apps.py +++ b/src/customer/apps.py @@ -4,3 +4,5 @@ from django.apps import AppConfig class CustomerConfig(AppConfig): name = 'customer' + verbose_name = 'Клиенты' + diff --git a/src/docs/__init__.py b/src/docs/__init__.py index 7c68785..fcd501d 100644 --- a/src/docs/__init__.py +++ b/src/docs/__init__.py @@ -1 +1,2 @@ -# -*- coding: utf-8 -*- \ No newline at end of file +# -*- coding: utf-8 -*- +default_app_config = "docs.apps.DocConfig" diff --git a/src/docs/apps.py b/src/docs/apps.py new file mode 100644 index 0000000..ee54d3e --- /dev/null +++ b/src/docs/apps.py @@ -0,0 +1,8 @@ +# -*- coding: utf-8 -*- +from django.apps import AppConfig + + +class DocConfig(AppConfig): + name = 'docs' + verbose_name = 'Документы' + diff --git a/src/dokumentor/urls.py b/src/dokumentor/urls.py index ade4887..15c141e 100644 --- a/src/dokumentor/urls.py +++ b/src/dokumentor/urls.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- from django.conf import settings - +from django.contrib import admin from django.conf.urls import patterns, include, url import autocomplete_light @@ -10,6 +10,9 @@ from django.contrib import admin admin.autodiscover() autocomplete_light.autodiscover() +admin.site.site_header = 'Документор' +admin.site.index_title = 'Документор' +admin.site.site_title = 'Документор' urlpatterns = patterns('', url(r'^admin/doc/', include('django.contrib.admindocs.urls')), @@ -39,4 +42,4 @@ if settings.DEBUG: import debug_toolbar urlpatterns = [ url(r'^__debug__/', include(debug_toolbar.urls)), - ] + urlpatterns \ No newline at end of file + ] + urlpatterns diff --git a/src/myauth/apps.py b/src/myauth/apps.py index e5f1751..428e0d7 100644 --- a/src/myauth/apps.py +++ b/src/myauth/apps.py @@ -4,4 +4,6 @@ from django.apps import AppConfig class MyAuthConfig(AppConfig): name = 'myauth' + verbose_name = 'Авторизация' + diff --git a/src/yandex_money/__init__.py b/src/yandex_money/__init__.py index e69de29..b170e40 100644 --- a/src/yandex_money/__init__.py +++ b/src/yandex_money/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +default_app_config = "yandex_money.apps.YandexMoneyConfig" diff --git a/src/yandex_money/apps.py b/src/yandex_money/apps.py new file mode 100644 index 0000000..7585f96 --- /dev/null +++ b/src/yandex_money/apps.py @@ -0,0 +1,9 @@ +# -*- coding: utf-8 -*- +from django.apps import AppConfig + + +class YandexMoneyConfig(AppConfig): + name = 'yandex_money' + verbose_name = 'Яндекс.Деньги' + +