diff --git a/.gitignore b/.gitignore index f29b1e9..553d206 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ .vagrant/ __pycache__ venv -evenementiel/settings.py +poulpe/settings.py .*.swp *.pyc *.sqlite3 diff --git a/manage.py b/manage.py index 22640b3..42d99ee 100755 --- a/manage.py +++ b/manage.py @@ -3,7 +3,7 @@ import os import sys if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "evenementiel.settings.devlocal") + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "poulpe.settings.devlocal") from django.core.management import execute_from_command_line diff --git a/evenementiel/__init__.py b/poulpe/__init__.py similarity index 100% rename from evenementiel/__init__.py rename to poulpe/__init__.py diff --git a/evenementiel/asgi.py b/poulpe/asgi.py similarity index 64% rename from evenementiel/asgi.py rename to poulpe/asgi.py index 59c5d58..33c8295 100644 --- a/evenementiel/asgi.py +++ b/poulpe/asgi.py @@ -2,6 +2,6 @@ import os from channels.asgi import get_channel_layer if "DJANGO_SETTINGS_MODULE" not in os.environ: - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "evenementiel.settings") + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "poulpe.settings") channel_layer = get_channel_layer() diff --git a/evenementiel/routing.py b/poulpe/routing.py similarity index 100% rename from evenementiel/routing.py rename to poulpe/routing.py diff --git a/evenementiel/settings/.gitignore b/poulpe/settings/.gitignore similarity index 100% rename from evenementiel/settings/.gitignore rename to poulpe/settings/.gitignore diff --git a/evenementiel/settings/common.py b/poulpe/settings/common.py similarity index 98% rename from evenementiel/settings/common.py rename to poulpe/settings/common.py index 6b1cff6..9b982d9 100644 --- a/evenementiel/settings/common.py +++ b/poulpe/settings/common.py @@ -99,7 +99,7 @@ REST_FRAMEWORK = { 'TEST_REQUEST_DEFAULT_FORMAT': 'json', } -ROOT_URLCONF = 'evenementiel.urls' +ROOT_URLCONF = 'poulpe.urls' STATIC_URL = "/static/" MEDIA_URL = "/media/" @@ -147,7 +147,7 @@ DATABASES = { # port=REDIS_PORT, db=REDIS_DB) # )], # }, -# "ROUTING": "evenementiel.routing.channel_routing", +# "ROUTING": "poulpe.routing.channel_routing", # } # } diff --git a/evenementiel/settings/dev.py b/poulpe/settings/dev.py similarity index 100% rename from evenementiel/settings/dev.py rename to poulpe/settings/dev.py diff --git a/evenementiel/settings/devlocal.py b/poulpe/settings/devlocal.py similarity index 87% rename from evenementiel/settings/devlocal.py rename to poulpe/settings/devlocal.py index e420dda..e7d8fe4 100644 --- a/evenementiel/settings/devlocal.py +++ b/poulpe/settings/devlocal.py @@ -18,6 +18,6 @@ DATABASES = { CHANNEL_LAYERS = { "default": { "BACKEND": "asgiref.inmemory.ChannelLayer", - "ROUTING": "evenementiel.routing.channel_routing", + "ROUTING": "poulpe.routing.channel_routing", }, } diff --git a/evenementiel/settings/secret_example.py b/poulpe/settings/secret_example.py similarity index 100% rename from evenementiel/settings/secret_example.py rename to poulpe/settings/secret_example.py diff --git a/evenementiel/urls.py b/poulpe/urls.py similarity index 100% rename from evenementiel/urls.py rename to poulpe/urls.py diff --git a/evenementiel/wsgi.py b/poulpe/wsgi.py similarity index 72% rename from evenementiel/wsgi.py rename to poulpe/wsgi.py index 0189ed9..7acec83 100644 --- a/evenementiel/wsgi.py +++ b/poulpe/wsgi.py @@ -1,5 +1,5 @@ """ -WSGI config for evenementiel project. +WSGI config for GestionEvenementiel project. It exposes the WSGI callable as a module-level variable named ``application``. @@ -11,6 +11,6 @@ import os from django.core.wsgi import get_wsgi_application -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "evenementiel.settings") +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "poulpe.settings") application = get_wsgi_application() diff --git a/provisioning/bootstrap.sh b/provisioning/bootstrap.sh index 6526c86..d58faa8 100644 --- a/provisioning/bootstrap.sh +++ b/provisioning/bootstrap.sh @@ -10,7 +10,7 @@ DBPASSWD="4KZt3nGPLVeWSvtBZPsd9jdssdJMds78" REDIS_PASSWD="dummy" # It is used in quite a few places -SETTINGS="evenementiel.settings.dev" +SETTINGS="poulpe.settings.dev" # Fills a "templated file" with the information specified in the variables above # e.g. every occurrence of {{DBUSER}} in the file will be replaced by the value @@ -90,9 +90,9 @@ redis-cli -a $REDIS_PASSWD CONFIG REWRITE cd /vagrant # Setup the secrets -sudo -H -u vagrant cp evenementiel/settings/secret_example.py \ - evenementiel/settings/secret.py -fill_template evenementiel/settings/secret.py +sudo -H -u vagrant cp poulpe/settings/secret_example.py \ + poulpe/settings/secret.py +fill_template poulpe/settings/secret.py # Run the usual django admin commands function venv_python { diff --git a/provisioning/daphne.service b/provisioning/daphne.service index 3c289e6..2c7a37d 100644 --- a/provisioning/daphne.service +++ b/provisioning/daphne.service @@ -10,7 +10,7 @@ TimeoutSec=300 WorkingDirectory=/vagrant Environment="DJANGO_SETTINGS_MODULE={{SETTINGS}}" ExecStart=/home/vagrant/venv/bin/daphne -u /srv/GE/GE.sock \ - evenementiel.asgi:channel_layer + poulpe.asgi:channel_layer [Install] WantedBy=multi-user.target