"Fossies" - the Fresh Open Source Software Archive

Member "horizon-16.0.0/horizon/conf/default.py" (16 Oct 2019, 1625 Bytes) of package /linux/misc/openstack/horizon-16.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "default.py" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 15.1.0_vs_16.0.0.

    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 
   13 from django.conf import settings
   14 from django.utils.translation import ugettext_lazy as _
   15 
   16 # Default configuration dictionary. Do not mutate.
   17 HORIZON_CONFIG = {
   18     # Allow for ordering dashboards; list or tuple if provided.
   19     'dashboards': None,
   20 
   21     # Name of a default dashboard; defaults to first alphabetically if None
   22     'default_dashboard': None,
   23 
   24     # Default redirect url for users' home
   25     'user_home': settings.LOGIN_REDIRECT_URL,
   26 
   27     # AJAX settings for JavaScript
   28     'ajax_queue_limit': 10,
   29     'ajax_poll_interval': 2500,
   30 
   31     # URL for reporting issue with this site.
   32     'bug_url': None,
   33 
   34     # URL for additional help with this site.
   35     'help_url': None,
   36 
   37     # Exception configuration.
   38     'exceptions': {'unauthorized': [],
   39                    'not_found': [],
   40                    'recoverable': []},
   41 
   42     # Password configuration.
   43     'password_validator': {'regex': '.*',
   44                            'help_text': _("Password is not accepted")},
   45 
   46     'password_autocomplete': 'off',
   47 
   48     'integration_tests_support': settings.INTEGRATION_TESTS_SUPPORT,
   49 }