Improve on the template, most things work???
This commit is contained in:
parent
c0f9876184
commit
46fa0d1ae5
19 changed files with 396 additions and 181 deletions
18
config.py
18
config.py
|
|
@ -2,6 +2,20 @@ import os
|
|||
|
||||
class Config:
|
||||
SECRET_KEY = os.environ.get('SECRET_KEY', 'dev')
|
||||
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL', 'sqlite:///repair_tracker.db')
|
||||
# SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL', 'sqlite:///repair_tracker.db')
|
||||
SQLALCHEMY_DATABASE_URI = 'sqlite:///site.db'
|
||||
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
||||
UPLOAD_FOLDER = 'app/static/barcodes'
|
||||
|
||||
"""
|
||||
from pathlib import Path
|
||||
|
||||
class Config:
|
||||
SECRET_KEY = 'your_secret_key_here'
|
||||
SQLALCHEMY_DATABASE_URI = 'sqlite:///site.db'
|
||||
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
||||
|
||||
# Load environment variables if needed
|
||||
# For example, you can use python-dotenv to load variables from a .env file
|
||||
# from dotenv import load_dotenv
|
||||
# load_dotenv()
|
||||
"""
|
||||
Loading…
Add table
Add a link
Reference in a new issue