Skip to content

Latest commit

 

History

History
87 lines (60 loc) · 3.2 KB

configuration.rst

File metadata and controls

87 lines (60 loc) · 3.2 KB

Configuration

Wooey Settings

WOOEY_FILE_DIR: String, where the files uploaded by the user will be saved (Default: wooey_files)

WOOEY\_CELERY: Boolean, whether or not celery is enabled. If disabled, tasks will run locally and block execution. (Default: True)

WOOEY\_CELERY\_TASKS: String, the name of the celery tasks for Wooey. (Default: 'wooey.tasks')

WOOEY\_ALLOW\_ANONYMOUS: Boolean, whether to allow submission of jobs by anonymous users. (Default: True)

By default, Wooey has a basic user account system. It is very basic, and doesn't confirm registrations via email.

WOOEY\_AUTH: Boolean, whether to use the authorization system of Wooey for simple login/registration. (Default: True)

WOOEY\_LOGIN\_URL: String, if you have an existing authorization system, the login url: (Default: settings.LOGIN_URL

WOOEY\_REGISTER\_URL: String, if you have an existing authorization system, the registration url: (Default: /accounts/register/)

WOOEY\_EPHEMERAL\_FILES: Boolean, if your file system changes with each restart. (Default: False)

WOOEY\_SHOW\_LOCKED\_SCRIPTS: Boolean, whether to show locked scripts as disabled or hide them entirely. (Defalt: True -- show as disabled)

Internationlization (i18n)

Wooey supports the use of Django internationalization settings to present the interface in your own language. Currently we provide limited support for French, German and Dutch. We welcome contributions for translation extensions, fixes and new languages from our users.

If you want your installation to only use a single language, you can specify this using the LANGUAGE_CODE setting in django_settings.py. For example to set the interface to French, you would use:

LANGUADE_CODE = 'fr'

For German you would use:

LANGUADE_CODE = 'de'

If you want the user interface to automatically change to the preferred language for your visitors, you must use the Django internationalization middelware. To do this add django.middleware.locale.LocaleMiddleware to your MIDDLEWARE_CLASSES block in django_settings.py. Note that it must come after the Session middelware, and before the CommonMiddleware e.g.

MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.locale.LocaleMiddleware', # <- HERE
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'django.middleware.security.SecurityMiddleware',
)

For more information on the internationlization middelware see the Django documentation.

Note that if a user's browser does not request an available language the language specified in LANGUAGE_CODE will be used.