Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Mezzanine's dynamic settings ? #2

Open
krtek4 opened this issue Mar 5, 2014 · 0 comments
Open

Use Mezzanine's dynamic settings ? #2

krtek4 opened this issue Mar 5, 2014 · 0 comments

Comments

@krtek4
Copy link

krtek4 commented Mar 5, 2014

I just created a new Mezzanine project using the default project template and remarked that Mezzanine has a dynamic settings method to avoid common issues based on the configuration :

####################
# DYNAMIC SETTINGS #
####################

# set_dynamic_settings() will rewrite globals based on what has been
# defined so far, in order to provide some better defaults where
# applicable. We also allow this settings module to be imported
# without Mezzanine installed, as the case may be when using the
# fabfile, where setting the dynamic settings below isn't strictly
# required.
try:
    from mezzanine.utils.conf import set_dynamic_settings
except ImportError:
    pass
else:
    set_dynamic_settings(globals())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant