Skip to content
Snippets Groups Projects
Commit b262ba6c authored by Magnus Giesbert's avatar Magnus Giesbert Committed by Robin Sonnabend
Browse files

Fix das Erstellen einer Example-Config

parent 75088536
No related branches found
No related tags found
1 merge request!14Fix das Erstellen einer Example-Config
...@@ -39,7 +39,7 @@ Steps: ...@@ -39,7 +39,7 @@ Steps:
1. clone the [repository](https://git.fsmpi.rwth-aachen.de/protokollsystem/proto3) 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 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 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 * **do** change everything that is not commented out
* change commented out settings if they are wrong * 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`) * **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`)
......
...@@ -185,13 +185,6 @@ def check_config(): ...@@ -185,13 +185,6 @@ def check_config():
return configproxy.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): def send_file(file_like, cache_timeout, as_attachment, attachment_filename):
""" """
Replaces flask.send_file since that uses an uwsgi function that is buggy. Replaces flask.send_file since that uses an uwsgi function that is buggy.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment