No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
.gitignore
README.md
babel.cfg
config.py
messages.pot
requirements.txt
run.py

README.md

The Murals of Kyiv website

http://kyivmural.com

Set-up

Init database and add defaults like the admin user and the languages

python run.py db init
python run.py set_defaults --name YOUR_ADMIN_NAME --pass YOUR_ADMIN_PASS

Do migration

pyrhon run.py db migrate

Upgrade

pyrhon run.py db upgrade

Run

Run on localhost with gunicorn

gunicorn run:app -b localhost:XXXX

Internationalization and Localization

Update existing languages

  1. Extract texts for translations
  2. Update the translations
  3. Compile translated texts
pybabel extract -F babel.cfg -o messages.pot --input-dirs=./app
pybabel update -i messages.pot -d app/translations
pybabel compile -d app/translations/

Adding a new language

Add a new language, for example Spanish es

pybabel init -i messages.pot -d app/translations -l es

Requirements

See requirements.txt