This commit is contained in:
hex
2025-04-29 13:54:11 -07:00
commit 0c38bf894c
32 changed files with 1431 additions and 0 deletions

12
config.py Normal file
View File

@@ -0,0 +1,12 @@
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