OpenStack Dashboard (Horizon)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default.py 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Licensed under the Apache License, Version 2.0 (the "License"); you may
  2. # not use this file except in compliance with the License. You may obtain
  3. # a copy of the License at
  4. #
  5. # http://www.apache.org/licenses/LICENSE-2.0
  6. #
  7. # Unless required by applicable law or agreed to in writing, software
  8. # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  9. # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  10. # License for the specific language governing permissions and limitations
  11. # under the License.
  12. from django.conf import settings # noqa
  13. from django.utils.translation import ugettext_lazy as _ # noqa
  14. # Default configuration dictionary. Do not mutate.
  15. HORIZON_CONFIG = {
  16. # Allow for ordering dashboards; list or tuple if provided.
  17. 'dashboards': None,
  18. # Name of a default dashboard; defaults to first alphabetically if None
  19. 'default_dashboard': None,
  20. # Default redirect url for users' home
  21. 'user_home': settings.LOGIN_REDIRECT_URL,
  22. # AJAX settings for JavaScript
  23. 'ajax_queue_limit': 10,
  24. 'ajax_poll_interval': 2500,
  25. # URL for additional help with this site.
  26. 'help_url': None,
  27. # Exception configuration.
  28. 'exceptions': {'unauthorized': [],
  29. 'not_found': [],
  30. 'recoverable': []},
  31. # Password configuration.
  32. 'password_validator': {'regex': '.*',
  33. 'help_text': _("Password is not accepted")},
  34. 'password_autocomplete': 'on',
  35. # Enable or disable simplified floating IP address management.
  36. 'simple_ip_management': True
  37. }