From 7f13c702b051a8e066098c24a9ef18dd797eef6f Mon Sep 17 00:00:00 2001 From: Xavier Fiechter Date: Thu, 6 Jun 2024 17:01:38 +0200 Subject: [PATCH] . --- django/labellabor/make_config.py | 3 --- docker-compose.yml | 2 -- 2 files changed, 5 deletions(-) diff --git a/django/labellabor/make_config.py b/django/labellabor/make_config.py index db2a7c0..bb392e5 100644 --- a/django/labellabor/make_config.py +++ b/django/labellabor/make_config.py @@ -23,7 +23,6 @@ def generate_config_file(config_file_path="config.ini"): database_password = os.getenv("MYSQL_PASSWORD") crypto_salt = 'labelbase_{}_'.format(generate_random_string(32)) - # Set the values in the configuration file config['internal'] = { 'secret_key': '{}'.format(dj_secret_key), 'proj_name': 'labelbase', @@ -41,13 +40,11 @@ def generate_config_file(config_file_path="config.ini"): # 'host': '127.0.0.1' } - # Create the configuration file and write the values with open(config_file_path, 'w') as configfile: config.write(configfile) if __name__ == "__main__": - # Check if the config.ini file exists if not os.path.isfile(config_file_path): generate_config_file() print("Config file {} created.".format(config_file_path)) diff --git a/docker-compose.yml b/docker-compose.yml index 871d4ce..92d5aa2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,3 @@ -version: "3.7" - services: labelbase_mysql: build: