forked from eduNEXT/tutor-contrib-codejail
-
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.
fix: use tutor config on codejail service and add patches to edit it …
…DS-894 (eduNEXT#55) * fix: use tutor config on codejail service and add patches to edit it * fix: use the right settings for each environment * fix: add code_jail to be able to edit it trough patches * fix: add indent to the patches
- Loading branch information
Showing
3 changed files
with
16 additions
and
8 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
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 |
---|---|---|
@@ -1,10 +1,18 @@ | ||
"""Module with the configuration of config classes.""" | ||
from base import BaseConfig | ||
from codejailservice.config import DevelopmentConfig, ProductionConfig | ||
|
||
|
||
class DevConfig(BaseConfig): | ||
"""Class to use for development context that inherits from BaseConfig.""" | ||
class DevelopmentConfig(DevelopmentConfig): | ||
"""Class to use for development context that inherits from DevelopmentConfig.""" | ||
|
||
CODE_JAIL = DevelopmentConfig.CODE_JAIL | ||
{{patch("codejail-common-settings") | indent(4)}} | ||
{{patch("codejail-development-settings") | indent(4)}} | ||
|
||
class ProductionConfig(BaseConfig): | ||
"""Class to use for production context that inherits from BaseConfig.""" | ||
|
||
class ProductionConfig(ProductionConfig): | ||
"""Class to use for production context that inherits from ProductionConfig.""" | ||
|
||
CODE_JAIL = ProductionConfig.CODE_JAIL | ||
{{patch("codejail-common-settings") | indent(4)}} | ||
{{patch("codejail-production-settings") | indent(4)}} |