diff --git a/README.md b/README.md index 8559581022f8ad7457c90a1ae1aefb80673755b1..a8f186bd76b129c3bdfd216cd5d76b6b11e73f8c 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 660b78086237bb78a33eb79c6a8bfca431ea09f9..3d1dda7c4cf8debb36d675e992e2d07d1968e2cf 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.