From b262ba6cafb331aab2ab0cd2c04ab3f8d1db5c98 Mon Sep 17 00:00:00 2001 From: Magnus Giesbert <magnus@fsmpi.rwth-aachen.de> Date: Wed, 2 Feb 2022 17:57:54 +0100 Subject: [PATCH] Fix das Erstellen einer Example-Config --- README.md | 2 +- server.py | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/README.md b/README.md index 8559581..a8f186b 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Steps: 1. clone the [repository](https://git.fsmpi.rwth-aachen.de/protokollsystem/proto3) 2. create a python virtualenv and install the packages from `requirements.txt` there 3. create a database (tested with postgres and sqlite, but feel free to use whatever you like and [SQLAlchemy](http://docs.sqlalchemy.org/en/latest/dialects/index.html) supports -4. create `config.py` with `flask create_example_config config.py` and edit it +4. create `config.py` with `python configproxy.py create --filename config.py` and edit it (make sure that python version >= 3.5) * **do** change everything that is not commented out * change commented out settings if they are wrong * **do** change the random keys `SECRET_KEY` and `SECURITY_KEY` to something random (although the generated config already uses random values generated with `os.urandom`) diff --git a/server.py b/server.py index 660b780..3d1dda7 100755 --- a/server.py +++ b/server.py @@ -185,13 +185,6 @@ def check_config(): return configproxy.check_config() -@app.cli.command() -@click.argument("filename") -def create_example_config(filename): - import configproxy - return configproxy.write_example_config(filename=filename) - - def send_file(file_like, cache_timeout, as_attachment, attachment_filename): """ Replaces flask.send_file since that uses an uwsgi function that is buggy. -- GitLab