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)

WOOEY_REALTIME_CACHE: String, the name of the cache to use for storing real time updates from running jobs.

WOOEY_JOB_EXPIRATION: Dictionary, A dictionary with two keys: user and anonymous. The values for each is a timedelta specifying how much time should be elapsed before a job is automatically deleted. If a key is not provided or None, the job for that user type wll not be deleted.

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, Dutch, Japanese, and Simplifed Chinese. We welcome contributions for translation extensions, fixes and new languages from our users.

To specify the default language for your installation, you can specify this using the LANGUAGE_CODE setting in django_settings.py. For example to set the interface to French, you would use:

LANGUAGE_CODE = 'fr'

For German you would use:

LANGUAGE_CODE = 'de'

If you want the user interface to automatically change to the preferred language for your visitors, you must use the Django internationalization middleware. By default, the bootstrapped version of Wooey will add in the necessary middleware, but for projects using Wooey as a separate app, these projects will need to add django.middleware.locale.LocaleMiddleware to their MIDDLEWARE_CLASSES block in django_settings.py. Note that it must come after the Session middleware, 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.