forked from DGNum/gestioCOF
Rename the cof/ folder to gestioasso/
This is a much more sensible name since it contains configuration applicable to both GestioCOF and GestioBDS. The next logical step would be to rename the `gestioncof/` folder to `cof/`.
This commit is contained in:
parent
63eeb5b7a9
commit
726b3f55a0
26 changed files with 17 additions and 17 deletions
|
@ -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
|
||||
|
|
|
@ -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()
|
|
@ -149,7 +149,7 @@ CHANNEL_LAYERS = {
|
|||
)
|
||||
]
|
||||
},
|
||||
"ROUTING": "cof.routing.routing",
|
||||
"ROUTING": "gestioasso.routing.routing",
|
||||
}
|
||||
}
|
||||
|
|
@ -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"
|
||||
|
||||
|
||||
# ---
|
|
@ -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",
|
||||
}
|
||||
}
|
||||
|
|
@ -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()
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue