. bin/activate
pip install -r requirements.txt
```
-Then edit config.py.example into config.py with your database connection
+Then edit config.py.example into config.py with your database connection and web site settings
## Development and debug
- cancel: user is able to cancel a running motion
- finish: user is able to close a running motion
- audit: user is able to see given votes of a finished motion
+- proxyadmin: user is able to grant proxy rights for users
To grant right use the following (here with vote right as example):
- on all groups add "vote:*"
Within the motion content markdown can be used for formatting e.g.
* To add a line break add two lines
-* to enter a link use `[text](https//domain.tld/link)`
+* to enter a link use `[text](https://domain.tld/link)`
## Settings for nginx
```
python_tests_xml/*
```
+
+## Add user via command line
+
+For linux start with
+```
+FLASK_APP=motion.py
+```
+
+For windows start with
+```
+set FLASK_APP=motion.py
+
+```
+
+To add a user use this command
+```
+flask create-user "email address" "host"
+
+```
+
+The application will return a message for success.
+
+To mask motions use this command
+```
+flask motion_masking motionidentifier motionurl host"
+
+```
+
+where:
+
+* motionidentifier - the motion identifier or left part of it which should be cleaned
+* motionurl - an url to a motion that is the reason for the cleanup
+* host - host where the motions are located
+
+The application will return a message for success.