Skip to content

Commit

Permalink
Remove django-constance
Browse files Browse the repository at this point in the history
  • Loading branch information
dougpenny committed Aug 17, 2024
1 parent a766e9f commit 5b2022d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 39 deletions.
38 changes: 0 additions & 38 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"mozilla_django_oidc",
"rest_framework",
"rest_framework.authtoken",
"constance",
"mathfilters",
"api.apps.ApiConfig",
"cafeteria.apps.CafeteriaConfig",
Expand Down Expand Up @@ -190,43 +189,6 @@
],
}

# Constance Configuration
# https://django-constance.readthedocs.io/en/latest/index.html
CONSTANCE_BACKEND = "constance.backends.database.DatabaseBackend"

CONSTANCE_CONFIG = {
"BALANCE_EXPORT_PATH": (
"/",
"File path where current balance export files should be saved.",
),
"CLOSED_FOR_SUMMER": (
False,
"The cafeteria is closed for a school break or holiday.",
),
"CLOSE_TIME": (time(23, 15), "The time orders should stop being accepted.", time),
"CURRENT_YEAR": ("", "Current school year."),
"DEBT_LIMIT": (0.00, "Debt limit when users are prevented from ordering."),
"NEW_CARD_FEE": (0.00, "Fee charged for a new lunch card."),
"OPEN_TIME": (time(0, 0), "The time orders should start being accepted.", time),
"REPORTS_EMAIL": (
"",
"Email addresses, comma seperated, to which system reports should be sent.",
),
}

CONSTANCE_CONFIG_FIELDSETS = {
"General Settings": (
"OPEN_TIME",
"CLOSE_TIME",
"CLOSED_FOR_SUMMER",
"DEBT_LIMIT",
"NEW_CARD_FEE",
"REPORTS_EMAIL",
"BALANCE_EXPORT_PATH",
"CURRENT_YEAR",
),
}

# Sentry.io
sentry_sdk.init(
dsn="https://3b9e30470f1df096b1b2f68529dd4f72@o4506650567311360.ingest.sentry.io/4506651708751872",
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ gunicorn==23.0.0
python-dotenv==1.0.1
reportlab==4.2.2
XlsxWriter==3.2.0
django-constance[database]==3.1.0
mozilla-django-oidc==4.0.1
django-mathfilters==1.0.0
pypowerschool==0.2.0
Expand Down

0 comments on commit 5b2022d

Please sign in to comment.