33 lines
893 B
Python
33 lines
893 B
Python
# -*- encoding: utf-8 -*-
|
|
"""
|
|
Python Aplication Template
|
|
Licence: GPLv3
|
|
"""
|
|
|
|
class Config(object):
|
|
"""
|
|
Configuration base, for all environments.
|
|
"""
|
|
DEBUG = False
|
|
TESTING = False
|
|
DATABASE_URI = 'sqlite:///application.db'
|
|
SQLALCHEMY_DATABASE_URI = 'sqlite:///application.db'
|
|
BOOTSTRAP_FONTAWESOME = True
|
|
SECRET_KEY = "BLOGAPPSECRETYO"
|
|
CSRF_ENABLED = True
|
|
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
|
#Get your reCaptche key on: https://www.google.com/recaptcha/admin/create
|
|
#RECAPTCHA_PUBLIC_KEY = "6LffFNwSAAAAAFcWVy__EnOCsNZcG2fVHFjTBvRP"
|
|
#RECAPTCHA_PRIVATE_KEY = "6LffFNwSAAAAAO7UURCGI7qQ811SOSZlgU69rvv7"
|
|
|
|
class ProductionConfig(Config):
|
|
DATABASE_URI = 'mysql://user@localhost/foo'
|
|
|
|
class DevelopmentConfig(Config):
|
|
# SQLALCHEMY_DATABASE_URI = 'sqlite:///:memory:'
|
|
SQLALCHEMY_DATABASE_URI = 'sqlite:////tmp/typeset.db'
|
|
DEBUG = True
|
|
|
|
class TestingConfig(Config):
|
|
TESTING = True
|