Skip to content
This repository was archived by the owner on Aug 22, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions HOWTO.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Modify *local_settings.py* as required.
Launch the server.

cd /path/to/Eos
FLASK_APP=eosweb EOSWEB_SETTINGS=$PWD/local_settings.py python -m flask run
FLASK_APP=eosweb EOSWEB_SETTINGS=$PWD/local_settings.py python -m flask run --host=0.0.0.0

Access Eos at http://localhost:5000/.

Expand Down Expand Up @@ -116,12 +116,15 @@ election.save()
If you are using the email log in method (`EmailUser`), you can additionally email the log in details using, for example:

```python
import eosweb.core.emails
for voter in election.voters:
if isinstance(voter, UserVoter):
if isinstance(voter.user, EmailUser):
voter.user.email_password(app.config['SMTP_HOST'], app.config['SMTP_PORT'], app.config['SMTP_USER'], app.config['SMTP_PASS'], app.config['SMTP_FROM'])
eosweb.core.emails.voter_email_password(election, voter)
```

Ensure the SMTP server information is setup in the Local Settings file.

You should now be able to see the election in the web interface.

Exit the Flask shell by pressing Ctrl+D.
Expand Down