Reviewed-on: #2
MP Explore UI
This is a Django-based UI for mp-explore.
Development
- Install Redis
- Install dependencies:
pip install Django Celery thefuzz django-celery-beat redis whitenoise mp-explore-core mp-explore-cli mp-explore-export-sqlite mp-explore-source-bundestag mp-explore-source-euparl mp-explore-source-nrw - Run
python3 manage.py migrate - Place your workflows
- Run
python3 manage.py start_workflows - Run
python3 manage.py runserver - Run
python3 -m celery -A mp_explore_ui worker -l DEBUG
Workflows
Workflows are stored in the mp_explore_ui/workflows folder. You can find example workflows at the docs/workflows/examples folder. You can read more about the specifics of mp-explore-ui workflows in docs/workflows/README.md.
Authentication
You need to create an administrative account in order to accept access requests. In order to do this, run python3 manage.py createsuperuser and the instructions.
There are three tiers of users:
unapprovedThose who have not been approved by an administrator. They do not have access to anything.staffThey have been approved by an administrator. They have access to the databases.administratorThey have been manually promoted by an administrator. They have access to the databases, administration interface, task status, and direct database access through/admin.
Promote new user to staff
- (User) Go to
/accounts/signupand create an account - (User) Log into your newly created account
- (User) Share your Username and User ID with an administrator.
- (Admin) Go to
/accounts/admin, look for the user with matchingUsernameandID - (Admin) Press
Make Staffto allow access to the user.
Demote staff to unapproved user
Note
This can only be performed by an administrator.
- Go to
/accounts/amdinand look for the user that you want to demote. - Press
Remove Staffto disallow access to the user.
(Optional)
- Go to
/admin. - In the
Authentication and Authorizationsection, selectUsers. - Look for the user that you want to permanently delete and click the checkbox on the left.
- Press the dropdown nearby
Action:and look forDelete selected users. - Press
Go. - Review the summary and press
Yes, I'm sure. - Make sure that the page says at the top
Successfully deleted 1 user.. If the result is different take a screenshot of the page, copy the error message, write down your exact actions that lead up to this moment, and forward this information to the instance's maintainer.
Promoting staff to administrator
Note
This can only be performed by an administrator.
- Go to
/admin - In the
Authentication and Authorizationsection, selectUsers. - Look for the user that you want to permanently delete and click their
username. - Scroll down, look for the
Superuser statuscheckbox, and check it. - Scroll down and press
SAVE - Make sure that the page says at the top
The user “<username>” was changed successfully.. If the result is different take a screenshot of the page, copy the error message, write down your exact actions that lead up to this moment, and forward this information to the instance's maintainer.
Description
Languages
Python
50.9%
HTML
43.7%
Dockerfile
4.2%
Shell
1.2%