diff --git a/api/__init__.py b/api/__init__.py index e69de29..08884cb 100644 --- a/api/__init__.py +++ b/api/__init__.py @@ -0,0 +1 @@ +default_app_config = 'api.apps.APIConfig' diff --git a/api/apps.py b/api/apps.py new file mode 100644 index 0000000..9d108ba --- /dev/null +++ b/api/apps.py @@ -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") diff --git a/communication/__init__.py b/communication/__init__.py index e69de29..d4488d0 100644 --- a/communication/__init__.py +++ b/communication/__init__.py @@ -0,0 +1 @@ +default_app_config = 'communication.apps.CommunicationConfig' diff --git a/communication/apps.py b/communication/apps.py index e6c488d..3bb0869 100644 --- a/communication/apps.py +++ b/communication/apps.py @@ -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") diff --git a/equipment/__init__.py b/equipment/__init__.py new file mode 100644 index 0000000..0a0003b --- /dev/null +++ b/equipment/__init__.py @@ -0,0 +1 @@ +default_app_config = 'equipment.apps.EquipmentConfig' diff --git a/equipment/apps.py b/equipment/apps.py index ac98343..c9ace13 100644 --- a/equipment/apps.py +++ b/equipment/apps.py @@ -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") diff --git a/evenementiel/settings/common.py b/evenementiel/settings/common.py index 6d41864..966a57f 100644 --- a/evenementiel/settings/common.py +++ b/evenementiel/settings/common.py @@ -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 = [ diff --git a/event/__init__.py b/event/__init__.py index e69de29..55ece8a 100644 --- a/event/__init__.py +++ b/event/__init__.py @@ -0,0 +1 @@ +default_app_config = 'event.apps.EventConfig' diff --git a/event/apps.py b/event/apps.py index 13b1f16..6889b59 100644 --- a/event/apps.py +++ b/event/apps.py @@ -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") diff --git a/shared/__init__.py b/shared/__init__.py index e69de29..efe58ed 100644 --- a/shared/__init__.py +++ b/shared/__init__.py @@ -0,0 +1 @@ +default_app_config = 'shared.apps.SharedConfig' diff --git a/users/__init__.py b/users/__init__.py index e69de29..208620c 100644 --- a/users/__init__.py +++ b/users/__init__.py @@ -0,0 +1 @@ +default_app_config = 'users.apps.UsersConfig' diff --git a/users/apps.py b/users/apps.py index 4ce1fab..a37b83b 100644 --- a/users/apps.py +++ b/users/apps.py @@ -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")