-
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.
Fully test 1-in-n contests; make improvements/fixes.
- Loading branch information
Showing
11 changed files
with
86 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -196,19 +196,12 @@ | |
EMAIL_USE_TLS = os.getenv("EMAIL_USE_TLS", "false").lower() == "true" | ||
EMAIL_USE_SSL = os.getenv("EMAIL_USE_SSL", "false").lower() == "true" | ||
|
||
# Special debug tool: emails matching this pattern will be sent to the | ||
# debug email address instead of the actual recipient. This is useful for | ||
# testing email functionality without spamming real users. | ||
# | ||
# For instance, if DEBUG_EMAIL_STARTSWITH is set to "frontseat@", | ||
# then any email sent to "[email protected]" will instead be sent to | ||
# DEBUG_EMAIL_TO. | ||
DEBUG_EMAIL_STARTSWITH = os.getenv("DEBUG_EMAIL_STARTSWITH", None) | ||
# Special debug tool: emails matching the pattern | ||
# frontseat-<digits>@ will be sent to DEBUG_EMAIL_TO | ||
# instead of the actual recipient. This is useful for testing email | ||
# functionality without spamming real users. | ||
DEBUG_EMAIL_REGEX = r"^frontseat-[a-zA-Z0-9]+@" | ||
DEBUG_EMAIL_TO = os.getenv("DEBUG_EMAIL_TO", None) | ||
if not DEBUG_EMAIL_STARTSWITH or not DEBUG_EMAIL_TO: | ||
DEBUG_EMAIL_STARTSWITH = None | ||
DEBUG_EMAIL_TO = None | ||
|
||
|
||
# ---------------------------------------------------------------------------- | ||
# Logging settings | ||
|
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Generated by Django 5.0.3 on 2024-04-25 18:40 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('vb', '0004_index_contest_entry_times'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='contestentry', | ||
name='contest', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='contest_entries', to='vb.contest'), | ||
), | ||
migrations.AlterField( | ||
model_name='contestentry', | ||
name='student', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='contest_entries', to='vb.student'), | ||
), | ||
] |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 5.0.3 on 2024-04-25 18:57 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('vb', '0005_rename_related_fields'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='contestentry', | ||
options={'verbose_name_plural': 'Contest entries'}, | ||
), | ||
] |
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
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