Skip to content

Instantly share code, notes, and snippets.

@oampo
Created December 16, 2013 15:13
Show Gist options
  • Save oampo/7988618 to your computer and use it in GitHub Desktop.
Save oampo/7988618 to your computer and use it in GitHub Desktop.
import os
class Config(object):
DEBUG = False
TESTING = False
CSRF_ENABLED = True
SECRET_KEY = 'temporary_secret_key'
class ProductionConfig(Config):
pass
class DevelopmentConfig(Config):
DEBUG = True
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.abspath("uppr.db")
class TestingConfig(Config):
CSRF_ENABLED = False
SQLALCHEMY_DATABASE_URI = 'sqlite:////tmp/uppr.db'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment