Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

No description, website, or topics provided.

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.