First Use - VTK-Revue/revue-flask-server GitHub Wiki
Install the database
Create schemas 'general' and 'content' in your PostgreSQL database.
python manage.py version_control
python manage.py upgrade
Create an account
/register
Activate the account
Temporarily disable the admin_required wrapper in utilities/permissions/__init__.py
def wrap(*args, **kwargs):
return f(*args, **kwargs)
if not session.is_logged_in():
flash('You need to login first.', 'danger')
return redirect('/login')
elif not has_permission(session.get_current_user_id(), Permissions.ADMIN):
flash('You need to have admin permissions.', 'danger')
return redirect('/')
else:
return f(*args, **kwargs)
Go to /intern/admin/activate and activate the account. Restore the admin_required wrapper.