<reponame>scripts-richard/make_blog_with_python<filename>config.py
import os

WTF_CSRF_ENABLED = True
SECRET_KEY = 'secret'  # should be unique to app
DEBUG = True  # should change to False before deployment

basedir = os.path.abspath(os.path.dirname(__file__))

SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db')

SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
SQLALCHEMY_TRACK_MODIFICATIONS = False

PER_PAGE = 5  # number of posts on index page
SNIPPET_LENGTH = 500   # character length for snippet for index page
ARCHIVE_PER_PAGE = 20  # number of archive titles on archive page

import os

WTF_CSRF_ENABLED = True
SECRET_KEY = 'secret'  # should be unique to app
DEBUG = True  # should change to False before deployment

basedir = os.path.abspath(os.path.dirname(__file__))

SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db')

SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
SQLALCHEMY_TRACK_MODIFICATIONS = False

PER_PAGE = 5  # number of posts on index page
SNIPPET_LENGTH = 500   # character length for snippet for index page
ARCHIVE_PER_PAGE = 20  # number of archive titles on archive page
# should be unique to app # should change to False before deployment # number of posts on index page # character length for snippet for index page # number of archive titles on archive page