diff --git a/README.md b/README.md index ffe680db..e6b5a3ee 100644 --- a/README.md +++ b/README.md @@ -38,11 +38,11 @@ Vous pouvez maintenant installer les dépendances Python depuis le fichier pip install -U pip # parfois nécessaire la première fois pip install -r requirements-devel.txt -Pour terminer, copier le fichier `cof/settings/secret_example.py` vers -`cof/settings/secret.py`. Sous Linux ou Mac, préférez plutôt un lien symbolique +Pour terminer, copier le fichier `gestioasso/settings/secret_example.py` vers +`gestioasso/settings/secret.py`. Sous Linux ou Mac, préférez plutôt un lien symbolique pour profiter de façon transparente des mises à jour du fichier: - ln -s secret_example.py cof/settings/secret.py + ln -s secret_example.py gestioasso/settings/secret.py Nous avons un git hook de pre-commit pour formatter et vérifier que votre code vérifie nos conventions. Pour bénéficier des mises à jour du hook, préférez diff --git a/cof/__init__.py b/gestioasso/__init__.py similarity index 100% rename from cof/__init__.py rename to gestioasso/__init__.py diff --git a/cof/apps.py b/gestioasso/apps.py similarity index 100% rename from cof/apps.py rename to gestioasso/apps.py diff --git a/cof/asgi.py b/gestioasso/asgi.py similarity index 65% rename from cof/asgi.py rename to gestioasso/asgi.py index ab4ce291..773acaa0 100644 --- a/cof/asgi.py +++ b/gestioasso/asgi.py @@ -3,6 +3,6 @@ import os from channels.asgi import get_channel_layer if "DJANGO_SETTINGS_MODULE" not in os.environ: - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cof.settings") + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "gestioasso.settings") channel_layer = get_channel_layer() diff --git a/cof/locale/__init__.py b/gestioasso/locale/__init__.py similarity index 100% rename from cof/locale/__init__.py rename to gestioasso/locale/__init__.py diff --git a/cof/locale/en/__init__.py b/gestioasso/locale/en/__init__.py similarity index 100% rename from cof/locale/en/__init__.py rename to gestioasso/locale/en/__init__.py diff --git a/cof/locale/en/formats.py b/gestioasso/locale/en/formats.py similarity index 100% rename from cof/locale/en/formats.py rename to gestioasso/locale/en/formats.py diff --git a/cof/locale/fr/__init__.py b/gestioasso/locale/fr/__init__.py similarity index 100% rename from cof/locale/fr/__init__.py rename to gestioasso/locale/fr/__init__.py diff --git a/cof/locale/fr/formats.py b/gestioasso/locale/fr/formats.py similarity index 100% rename from cof/locale/fr/formats.py rename to gestioasso/locale/fr/formats.py diff --git a/cof/routing.py b/gestioasso/routing.py similarity index 100% rename from cof/routing.py rename to gestioasso/routing.py diff --git a/cof/settings/.gitignore b/gestioasso/settings/.gitignore similarity index 100% rename from cof/settings/.gitignore rename to gestioasso/settings/.gitignore diff --git a/cof/settings/__init__.py b/gestioasso/settings/__init__.py similarity index 100% rename from cof/settings/__init__.py rename to gestioasso/settings/__init__.py diff --git a/cof/settings/bds_prod.py b/gestioasso/settings/bds_prod.py similarity index 100% rename from cof/settings/bds_prod.py rename to gestioasso/settings/bds_prod.py diff --git a/cof/settings/cof_prod.py b/gestioasso/settings/cof_prod.py similarity index 98% rename from cof/settings/cof_prod.py rename to gestioasso/settings/cof_prod.py index 47fa3954..ec0694fe 100644 --- a/cof/settings/cof_prod.py +++ b/gestioasso/settings/cof_prod.py @@ -149,7 +149,7 @@ CHANNEL_LAYERS = { ) ] }, - "ROUTING": "cof.routing.routing", + "ROUTING": "gestioasso.routing.routing", } } diff --git a/cof/settings/common.py b/gestioasso/settings/common.py similarity index 96% rename from cof/settings/common.py rename to gestioasso/settings/common.py index 4636ace3..88ae636a 100644 --- a/cof/settings/common.py +++ b/gestioasso/settings/common.py @@ -65,7 +65,7 @@ INSTALLED_APPS = [ "django.contrib.messages", "django.contrib.admin", "django.contrib.admindocs", - "cof.apps.IgnoreSrcStaticFilesConfig", + "gestioasso.apps.IgnoreSrcStaticFilesConfig", "django_cas_ng", "bootstrapform", "widget_tweaks", @@ -82,7 +82,7 @@ MIDDLEWARE = [ "django.middleware.locale.LocaleMiddleware", ] -ROOT_URLCONF = "cof.urls" +ROOT_URLCONF = "gestioasso.urls" TEMPLATES = [ { @@ -126,7 +126,7 @@ USE_I18N = True USE_L10N = True USE_TZ = True LANGUAGES = (("fr", "Français"), ("en", "English")) -FORMAT_MODULE_PATH = "cof.locale" +FORMAT_MODULE_PATH = "gestioasso.locale" # --- diff --git a/cof/settings/dev.py b/gestioasso/settings/dev.py similarity index 100% rename from cof/settings/dev.py rename to gestioasso/settings/dev.py diff --git a/cof/settings/local.py b/gestioasso/settings/local.py similarity index 97% rename from cof/settings/local.py rename to gestioasso/settings/local.py index c3607d7f..0cc7b5e5 100644 --- a/cof/settings/local.py +++ b/gestioasso/settings/local.py @@ -43,7 +43,7 @@ CACHES = {"default": {"BACKEND": "django.core.cache.backends.locmem.LocMemCache" CHANNEL_LAYERS = { "default": { "BACKEND": "asgiref.inmemory.ChannelLayer", - "ROUTING": "cof.routing.routing", + "ROUTING": "gestioasso.routing.routing", } } diff --git a/cof/settings/secret_example.py b/gestioasso/settings/secret_example.py similarity index 100% rename from cof/settings/secret_example.py rename to gestioasso/settings/secret_example.py diff --git a/cof/urls.py b/gestioasso/urls.py similarity index 100% rename from cof/urls.py rename to gestioasso/urls.py diff --git a/cof/wsgi.py b/gestioasso/wsgi.py similarity index 55% rename from cof/wsgi.py rename to gestioasso/wsgi.py index 47285284..bdd9a64c 100644 --- a/cof/wsgi.py +++ b/gestioasso/wsgi.py @@ -2,5 +2,5 @@ import os from django.core.wsgi import get_wsgi_application -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cof.settings.bds_prod") +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "gestioasso.settings.bds_prod") application = get_wsgi_application() diff --git a/manage.py b/manage.py index 094ec16f..913e4f6e 100755 --- a/manage.py +++ b/manage.py @@ -3,7 +3,7 @@ import os import sys if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cof.settings.local") + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "gestioasso.settings.local") from django.core.management import execute_from_command_line diff --git a/provisioning/bootstrap.sh b/provisioning/bootstrap.sh index d6b8f914..a298dfae 100644 --- a/provisioning/bootstrap.sh +++ b/provisioning/bootstrap.sh @@ -14,7 +14,7 @@ readonly DBUSER="cof_gestion" readonly DBNAME="cof_gestion" readonly DBPASSWD="4KZt3nGPLVeWSvtBZPSM3fSzXpzEU4" readonly REDIS_PASSWD="dummy" -readonly DJANGO_SETTINGS_MODULE="cof.settings.dev" +readonly DJANGO_SETTINGS_MODULE="gestioasso.settings.dev" # --- @@ -83,7 +83,7 @@ sudo -H -u vagrant ~vagrant/venv/bin/pip install \ # Préparation de Django cd /vagrant -ln -s -f secret_example.py cof/settings/secret.py +ln -s -f secret_example.py gestioasso/settings/secret.py sudo -H -u vagrant \ DJANGO_SETTINGS_MODULE="$DJANGO_SETTINGS_MODULE"\ /bin/sh -c ". ~vagrant/venv/bin/activate && /bin/sh provisioning/prepare_django.sh" diff --git a/provisioning/systemd/daphne.service b/provisioning/systemd/daphne.service index a9c30008..31b31c16 100644 --- a/provisioning/systemd/daphne.service +++ b/provisioning/systemd/daphne.service @@ -8,7 +8,7 @@ User=vagrant Group=vagrant TimeoutSec=300 WorkingDirectory=/vagrant -Environment="DJANGO_SETTINGS_MODULE=cof.settings.dev" +Environment="DJANGO_SETTINGS_MODULE=gestioasso.settings.dev" ExecStart=/home/vagrant/venv/bin/daphne \ -u /srv/gestiocof/gestiocof.sock \ cof.asgi:channel_layer diff --git a/provisioning/systemd/rappels.service b/provisioning/systemd/rappels.service index 2d407d53..0a4986f9 100644 --- a/provisioning/systemd/rappels.service +++ b/provisioning/systemd/rappels.service @@ -4,5 +4,5 @@ Description=Envoi des mails de rappel des spectales BdA [Service] Type=oneshot User=vagrant -Environment="DJANGO_SETTINGS_MODULE=cof.settings.dev" +Environment="DJANGO_SETTINGS_MODULE=gestioasso.settings.dev" ExecStart=/home/vagrant/venv/bin/python /vagrant/manage.py sendrappels diff --git a/provisioning/systemd/reventes.service b/provisioning/systemd/reventes.service index bd1992f8..266c0646 100644 --- a/provisioning/systemd/reventes.service +++ b/provisioning/systemd/reventes.service @@ -4,5 +4,5 @@ Description=Envoi des mails de BdA-Revente [Service] Type=oneshot User=vagrant -Environment="DJANGO_SETTINGS_MODULE=cof.settings.dev" +Environment="DJANGO_SETTINGS_MODULE=gestioasso.settings.dev" ExecStart=/home/vagrant/venv/bin/python /vagrant/manage.py manage_reventes diff --git a/provisioning/systemd/worker.service b/provisioning/systemd/worker.service index 69d742dc..a9ea733f 100644 --- a/provisioning/systemd/worker.service +++ b/provisioning/systemd/worker.service @@ -9,7 +9,7 @@ User=vagrant Group=vagrant TimeoutSec=300 WorkingDirectory=/vagrant -Environment="DJANGO_SETTINGS_MODULE=cof.settings.dev" +Environment="DJANGO_SETTINGS_MODULE=gestioasso.settings.dev" ExecStart=/home/vagrant/venv/bin/python manage.py runworker [Install]