Coder Social home page Coder Social logo

hrbonz / django-flexisettings Goto Github PK

View Code? Open in Web Editor NEW
43.0 43.0 3.0 74 KB

Django flexible settings with running environment support, separate security files and project layout detection.

Home Page: https://django-flexisettings.readthedocs.org/

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%

django-flexisettings's People

Contributors

hrbonz avatar peterristcms avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

django-flexisettings's Issues

TEMPLATE_DIRS should not be mandatory

When not adding the TEMPLATE_DIRS setting, flexisettings is raising an exception:

Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_from_command_line(sys.argv)
  File "/home/hr/.virtualenvs/dashgams/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
    utility.execute()
  File "/home/hr/.virtualenvs/dashgams/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 345, in execute
    settings.INSTALLED_APPS
  File "/home/hr/.virtualenvs/dashgams/local/lib/python2.7/site-packages/django/conf/__init__.py", line 46, in __getattr__
    self._setup(name)
  File "/home/hr/.virtualenvs/dashgams/local/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup
    self._wrapped = Settings(settings_module)
  File "/home/hr/.virtualenvs/dashgams/local/lib/python2.7/site-packages/django/conf/__init__.py", line 94, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/home/hr/.virtualenvs/dashgams/local/lib/python2.7/site-packages/flexisettings/settings.py", line 254, in <module>
    sys.modules[__name__] = FlexiSettingsProxy()
  File "/home/hr/.virtualenvs/dashgams/local/lib/python2.7/site-packages/flexisettings/settings.py", line 41, in __init__
    self._layout_discovery()
  File "/home/hr/.virtualenvs/dashgams/local/lib/python2.7/site-packages/flexisettings/settings.py", line 235, in _layout_discovery
    not in self._globals['TEMPLATE_DIRS']:
KeyError: 'TEMPLATE_DIRS'

verbose mode for settings loading

Add a verbose setting for settings loading, this would help understand what is happening. Especially when FLEXI_LAYOUT_DISCOVERY is True.

Add tox testing configuration

Add a tox.ini configuration to test against python >= 2.5 and django >= 1.4 (when the new settings format was pushed).

Make extra files available

Find a way to load extra files if desired, as security or settings.
Would help with flexible celery configuration file for example!

Dynamic urls loading

Would be nice to be able to load different urlpattern depending on the envirornment selected.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.