fireblog.scripts.initializedb module
The initializedb or initialize_fireblog_db script works in 2 ways:
- It can initialise a db to be used for the blog
- If a db already exists, then it will:
- Run migrations on it if necessary
- Check the settings table in the db and make sure that all required
settings exist and are valid.
-
fireblog.scripts.initializedb.main(argv=['/home/docs/checkouts/readthedocs.org/user_builds/fireblog/envs/develop/bin/sphinx-build', '-T', '-E', '-b', 'readthedocs', '-d', '_build/doctrees-readthedocs', '-D', 'language=en', '.', '_build/html'])[source]
-
fireblog.scripts.initializedb.run_alembic_migrations()[source]
-
fireblog.scripts.initializedb.setup_first_post(DBSession, script_name)[source]
-
fireblog.scripts.initializedb.setup_settings_db()[source]
-
fireblog.scripts.initializedb.usage(argv)[source]