Merge branch 'aureplop/appconfigs' into 'master'

Update AppConfigs

See merge request !23
This commit is contained in:
Erkan Narmanli 2017-08-30 21:22:05 +02:00
commit cbd5a7db0b
12 changed files with 29 additions and 5 deletions

View file

@ -0,0 +1 @@
default_app_config = 'api.apps.APIConfig'

7
api/apps.py Normal file
View file

@ -0,0 +1,7 @@
from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class APIConfig(AppConfig):
name = 'api'
verbose_name = _("API")

View file

@ -0,0 +1 @@
default_app_config = 'communication.apps.CommunicationConfig'

View file

@ -1,4 +1,7 @@
from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class CommunicationConfig(AppConfig):
name = 'communication'
verbose_name = _("Communication")

1
equipment/__init__.py Normal file
View file

@ -0,0 +1 @@
default_app_config = 'equipment.apps.EquipmentConfig'

View file

@ -1,5 +1,7 @@
from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class EquipmentConfig(AppConfig):
name = 'equipment'
verbose_name = _("Équipement")

View file

@ -44,22 +44,24 @@ BASE_DIR = os.path.dirname(
INSTALLED_APPS = [
'communication.apps.CommunicationConfig',
'equipment.apps.EquipmentConfig',
'event.apps.EventConfig',
'users.apps.UsersConfig',
'shared.apps.SharedConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'channels',
'rest_framework',
'bootstrapform',
'widget_tweaks',
'api',
'communication',
'equipment',
'event',
'shared',
'users',
]
MIDDLEWARE_CLASSES = [

View file

@ -0,0 +1 @@
default_app_config = 'event.apps.EventConfig'

View file

@ -1,5 +1,7 @@
from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class EventConfig(AppConfig):
name = 'event'
verbose_name = _("Évènement")

View file

@ -0,0 +1 @@
default_app_config = 'shared.apps.SharedConfig'

View file

@ -0,0 +1 @@
default_app_config = 'users.apps.UsersConfig'

View file

@ -1,5 +1,7 @@
from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class UsersConfig(AppConfig):
name = 'users'
verbose_name = _("Utilisateurs")