From e1bab7e4edb3b768c99990eb1fde0e7bb25cd9d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Wed, 22 Feb 2017 20:00:32 +0100 Subject: [PATCH] Use the AppConfig class --- bda/apps.py | 6 ++++++ bds/apps.py | 6 ++++++ cof/apps.py | 6 ++++++ gestioCOF/settings_dev.py | 10 +++++----- gestion/apps.py | 6 ++++++ kfet/apps.py | 7 +------ 6 files changed, 30 insertions(+), 11 deletions(-) create mode 100644 bda/apps.py create mode 100644 bds/apps.py create mode 100644 cof/apps.py create mode 100644 gestion/apps.py diff --git a/bda/apps.py b/bda/apps.py new file mode 100644 index 00000000..583936c7 --- /dev/null +++ b/bda/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class BdAConfig(AppConfig): + name = "bda" + verbose_name = "Gestion des tirages du BdA" diff --git a/bds/apps.py b/bds/apps.py new file mode 100644 index 00000000..7c08d34e --- /dev/null +++ b/bds/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class BDSConfig(AppConfig): + name = "bds" + verbose_name = "Application de gestion du BDS" diff --git a/cof/apps.py b/cof/apps.py new file mode 100644 index 00000000..f981ee91 --- /dev/null +++ b/cof/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class COFConfig(AppConfig): + name = "cof" + verbose_name = "Application de gestion du COF" diff --git a/gestioCOF/settings_dev.py b/gestioCOF/settings_dev.py index 253f924f..feacba52 100644 --- a/gestioCOF/settings_dev.py +++ b/gestioCOF/settings_dev.py @@ -42,12 +42,12 @@ INSTALLED_APPS = ( 'bootstrapform', 'channels', 'widget_tweaks', - 'bda', - 'bds', - 'cof', - 'gestion', - 'kfet', 'custommail', + 'bda.apps.BdAConfig', + 'bds.apps.BDSConfig', + 'cof.apps.COFConfig', + 'gestion.apps.GestionConfig', + 'kfet.apps.KFetConfig', ) MIDDLEWARE_CLASSES = ( diff --git a/gestion/apps.py b/gestion/apps.py new file mode 100644 index 00000000..efb14b29 --- /dev/null +++ b/gestion/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class GestionConfig(AppConfig): + name = "gestion" + verbose_name = "Gestion des outils communs COF/BDS" diff --git a/kfet/apps.py b/kfet/apps.py index 29f9f98e..ae83817b 100644 --- a/kfet/apps.py +++ b/kfet/apps.py @@ -1,11 +1,6 @@ -# -*- coding: utf-8 -*- - -from __future__ import (absolute_import, division, - print_function, unicode_literals) -from builtins import * - from django.apps import AppConfig + class KFetConfig(AppConfig): name = 'kfet' verbose_name = "Application K-FĂȘt"