-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.py
More file actions
23 lines (16 loc) · 828 Bytes
/
settings.py
File metadata and controls
23 lines (16 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import os
# GroundScratch Configuration file
# This value is for the upload folder. We do not recommand modifying it, because it can break things.
UPLOAD_FOLDER = os.path.dirname(os.path.realpath(__file__)) + '/uploads/'
# The secret key. Change it from the default and keep it secret!
SECRET_KEY = 'secret key'
# The SQLAlchemy Database URL. Change it to your database creditentials!
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:root@localhost/GroundScratch'
# The url of your GroudScratch instance. Please make it https, because it can break the Scratch file player!
ROOT_URL = 'http://localhost:8080/'
# !!!! NOT FOR PRODUCTION !!!!
# Enable development mode
TESTING = False
# !!!! ONLY FOR DEVELOPMENT ENVIRONNEMENT, NOT PRODUCTION !!!
# The port of your GroudScratch instance.
PORT = 8080