-
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce15457
commit c310cd9
Showing
4 changed files
with
27 additions
and
17 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,8 +39,9 @@ class BaseConfig: | |
) | ||
UPLOADED_PRODUCTEXCEL_DEST = os.path.join(STATIC, "uploads") | ||
UPLOADED_PRODUCTEXCEL_ALLOW = ("xls", "xlsx", "xlsm", "xlsb", "odf") | ||
PASSWORD_SALT = "abcdefghi" | ||
|
||
|
||
SQLALCHEMY_DATABASE_URI = os.environ.get('SQLALCHEMY_DATABASE_URI') | ||
SALT = os.environ.get('SALT') | ||
|
||
class ProductionConfig(BaseConfig): | ||
"""Configurations for production""" | ||
|
@@ -61,10 +62,6 @@ class ProductionConfig(BaseConfig): | |
MAIL_PASSWORD = os.environ.get("MAIL_PASSWORD") | ||
MAIL_DEFAULT_SENDER = os.environ.get("MAIL_DEFAULT_SENDER") | ||
|
||
# database configs | ||
SQLALCHEMY_DATABASE_URI = ( | ||
os.environ.get("SQLALCHEMY_DATABASE_URI") or "sqlite:///shopyo.db" | ||
) | ||
|
||
|
||
class DevelopmentConfig(BaseConfig): | ||
|
@@ -88,12 +85,6 @@ class DevelopmentConfig(BaseConfig): | |
MAIL_PASSWORD = "" | ||
MAIL_DEFAULT_SENDER = "[email protected]" | ||
|
||
# database configs | ||
SQLALCHEMY_DATABASE_URI = "sqlite:///shopyo.db" | ||
|
||
# unknown configs | ||
PASSWORD_SALT = "some pasword salt" | ||
|
||
|
||
class TestingConfig(BaseConfig): | ||
"""Configurations for testsing""" | ||
|