fixing sqlite

This commit is contained in:
2024-08-28 13:41:19 +02:00
parent 0f86a8ae69
commit 1e16059580
7 changed files with 15 additions and 9 deletions

View File

@@ -0,0 +1,8 @@
import os
from django.core.exceptions import ImproperlyConfigured
def get_env_variable(var_name):
try:
return os.environ[var_name]
except KeyError:
raise ImproperlyConfigured(f"Set the {var_name} environment variable")