$ python setup.py develop$ flask db init
$ flask db migrate
$ flask db upgrade$ python manage.py create_userThe default admin user will be:
[email protected] | Admin | admin
If you want a custom email / name / password you should use the function parameters:
$ python manage.py create_user --name admin --email [email protected] --pasword adminIn order to connect to the application run the flask development server
$ FLASK_APP=motoapi flask runGenerate the translation strings base file
$ pybabel extract -F babel.cfg -o messages.pot .
$ pybabel update -i messages.pot -d motoapi/translationsInit a new translation language
$ pybabel init -i messages.pot -d motoapi/translations -l esUpdate the language with new strings in base file
$ pybabel update -i messages.pot -d motoapi/translationsCompile the translation files
$ pybabel compile -d motoapi/translations