Use the AppConfig class
This commit is contained in:
parent
68c0ff559d
commit
e1bab7e4ed
6 changed files with 30 additions and 11 deletions
6
bda/apps.py
Normal file
6
bda/apps.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class BdAConfig(AppConfig):
|
||||
name = "bda"
|
||||
verbose_name = "Gestion des tirages du BdA"
|
6
bds/apps.py
Normal file
6
bds/apps.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class BDSConfig(AppConfig):
|
||||
name = "bds"
|
||||
verbose_name = "Application de gestion du BDS"
|
6
cof/apps.py
Normal file
6
cof/apps.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class COFConfig(AppConfig):
|
||||
name = "cof"
|
||||
verbose_name = "Application de gestion du COF"
|
|
@ -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 = (
|
||||
|
|
6
gestion/apps.py
Normal file
6
gestion/apps.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class GestionConfig(AppConfig):
|
||||
name = "gestion"
|
||||
verbose_name = "Gestion des outils communs COF/BDS"
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue