fixing sqlite
This commit is contained in:
8
saburly/settings/getenv.py
Normal file
8
saburly/settings/getenv.py
Normal 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")
|
||||
Reference in New Issue
Block a user