From 717f6798da476803729a269b96721648963e07d5 Mon Sep 17 00:00:00 2001 From: Carlos Vega <carlos.vega@lih.lu> Date: Thu, 8 Aug 2024 09:24:13 +0200 Subject: [PATCH] debug ci --- local_settings_ci.py | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/local_settings_ci.py b/local_settings_ci.py index 54c32696..7d323b3a 100644 --- a/local_settings_ci.py +++ b/local_settings_ci.py @@ -1,5 +1,5 @@ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'Paste long random string here' # Insert long random string +SECRET_KEY = "Paste long random string here" # Insert long random string # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True @@ -10,28 +10,31 @@ SERVE_STATIC = True # https://docs.djangoproject.com/en/1.10/ref/settings/#databases DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.postgresql_psycopg2', - 'NAME': 'smash', # Insert your database's name - 'USER': 'runner', # Insert your database's user - 'PASSWORD': 'password', # Insert your user's password - 'HOST': 'postgres', - 'PORT': '', - 'TEST': { - 'NAME': 'dbtest', + "default": { + "ENGINE": "django.db.backends.postgresql_psycopg2", + "NAME": "smash", # Insert your database's name + "USER": "runner", # Insert your database's user + "PASSWORD": "password", # Insert your user's password + "HOST": "postgres", + "PORT": "", + "TEST": { + "NAME": "dbtest", }, # '' === default one # Empty string is OK - # If to use sqlite # 'ENGINE': 'django.db.backends.sqlite3', # 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } } -STATIC_ROOT = '/tmp/static' # Warning! `/tmp` directory can be flushed in any moment; use a persistent one; e.g. ~/tmp/static -MEDIA_ROOT = '/tmp/media' # Warning! `/tmp` directory can be flushed in any moment; use a persistent one, e.g. ~/tmp/media -UPLOAD_ROOT = '~/tmp/upload' -ETL_ROOT = '/tmp/etl' +STATIC_ROOT = ( + "/tmp/static" # Warning! `/tmp` directory can be flushed in any moment; use a persistent one; e.g. ~/tmp/static +) +MEDIA_ROOT = ( + "/tmp/media" # Warning! `/tmp` directory can be flushed in any moment; use a persistent one, e.g. ~/tmp/media +) +UPLOAD_ROOT = "/tmp/upload" +ETL_ROOT = "/tmp/etl" -STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage' +STATICFILES_STORAGE = "django.contrib.staticfiles.storage.StaticFilesStorage" ALLOWED_HOSTS = ["127.0.0.1", "localhost"] -- GitLab