Skip to content

Commit f219c90

Browse files
author
App Generator
committed
Phase 3 - Define a Config File
1 parent 038f1eb commit f219c90

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

app/config.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# -*- encoding: utf-8 -*-
2+
"""
3+
Copyright (c) 2019 - present AppSeed.us
4+
"""
5+
6+
import os
7+
8+
# Grabs the folder where the script runs.
9+
basedir = os.path.abspath(os.path.dirname(__file__))
10+
11+
class Config():
12+
13+
# Set up the App SECRET_KEY
14+
SECRET_KEY = 'S_U_perS3crEt_KEY#9999'
15+
16+
# This will create a file in <app> FOLDER
17+
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'db.sqlite3')
18+
SQLALCHEMY_TRACK_MODIFICATIONS = False

0 commit comments

Comments
 (0)