Skip to content

Instantly share code, notes, and snippets.

@FernandoCelmer
Created March 10, 2023 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FernandoCelmer/27c01146df3b771b84ef6c26ebf07bf1 to your computer and use it in GitHub Desktop.
Save FernandoCelmer/27c01146df3b771b84ef6c26ebf07bf1 to your computer and use it in GitHub Desktop.
settings_module = __import__("settings.development", globals(), fromlist=[None], level=0)
for settings in dir(settings_module):
if not (settings.startswith('_') or settings.endswith('_')):
globals()[settings] = getattr(settings_module, settings)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment