13 lines
546 B
Python
13 lines
546 B
Python
import os
|
|
|
|
basedir = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
class Config:
|
|
SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard-to-guess-string'
|
|
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
|
|
'sqlite:///' + os.path.join(basedir, 'garage_sale.db')
|
|
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
|
UPLOAD_FOLDER = os.path.join(basedir, 'app/static/uploads')
|
|
ADMIN_PASSWORD = os.environ.get('ADMIN_PASSWORD') or 'admin123' # Change in production!
|
|
MAX_CONTENT_LENGTH = 16 * 1024 * 1024 # 16MB max upload size
|