-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use redis, allow only one CTF to be created per day.
- Loading branch information
Michael Zhang
committed
Sep 7, 2016
1 parent
dc085b0
commit 10c81c9
Showing
5 changed files
with
78 additions
and
7 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -26,6 +26,7 @@ def __init__(self, app_root=None, testing=False): | |
self.MAILGUN_API_KEY = os.getenv('MAILGUN_API_KEY', '') | ||
|
||
This comment has been minimized.
Sorry, something went wrong. |
||
if testing: | ||
self.DEBUG = True | ||
This comment has been minimized.
Sorry, something went wrong.
chaosagent
Member
|
||
self.TESTING = True | ||
self.WTF_CSRF_ENABLED = False | ||
|
||
|
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 |
---|---|---|
|
@@ -15,6 +15,7 @@ psycopg2 | |
pymysql | ||
pytest | ||
python-dotenv | ||
redis | ||
requests | ||
sqlalchemy | ||
wtforms |
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
Don't use testing or enable DEBUG for staging; staging should be as close to prod as possible. DEBUG and testing also turn off csrf protection and allow access to stack traces.