Ibm Demo Python Django

Channel Revision Published Runs on
latest/stable 3 19 Mar 2021
Ubuntu 14.04
latest/edge 3 19 Mar 2021
Ubuntu 14.04
juju deploy ibm-demo-python-django
Show information

Platform:

Ubuntu
14.04

Learn about configurations >

  • additional_distro_packages | string

    Default: python-imaging,python-docutils,python-tz

    Comma separated extra packages to install.

  • additional_pip_packages | string

    Comma separated extra packages to install.

  • application_path | string

    The relative path to install_root where the manage.py script is located.

  • celery_always_eager | string

    Default: False

    If True, all tasks will be executed locally by blocking until the task returns.

  • celery_amqp_vhost | string

    Set a specific vhost for amqp relation. By default it's the unit_name.

  • django_allowed_hosts | string

    A space separated list for settings.ALLOWED_HOSTS in django. Default value will be the hostname, fully-qualified name, and public IP.

  • django_debug | boolean

    Enable disable settings.DEBUG for django

  • django_extra_settings | string

    Allows setting up extra settings.* values for Django. Acceptable values are limited to comma delimited key-value pairs like: SETTING_X=foo, SETTING_Y=bar

  • django_settings | string

    The Python path to your Django settings module. Leave it empty if your settings file is at the root of your repos.

  • django_south | boolean

    Enable the use of south migrations

  • django_south_version | string

    Default: distro

    Version or origin from which to install. May be one of the following: distro (default), ppa:somecustom/ppa, a deb url sources entry or a valid pip line like 'South' or 'South==0.8.4' or a reposiroty url (without the -e). Leaving it empty if you don't want the charm to install South.

  • django_version | string

    Default: distro

    Version or origin from which to install. May be one of the following: distro (default), ppa:somecustom/ppa, a deb url sources entry or a valid pip line like 'Django' or 'Django==1.5' or a reposiroty url (without the -e). Leaving it empty if you don't want the charm to install Django.

  • install_root | string

    Default: /srv/

    The root directory to checkout to.

  • listen_ip | string

    Default: 0.0.0.0

    IP adresses to listen on. By default we listen on all of them.

  • pip_extra_args | string

    Extra arguments passed to pip.

  • port | int

    Default: 8080

    Port the application will be listenning.

  • project_template_extension | string

    When Django copies the project template files, it also renders certain files through the template engine: the files whose extensions match the --extension option (py by default) and the files whose names are passed with the --name option.

  • project_template_url | string

    If not repository url is found, the charm will create a new project. This option is the --template argument value for the startproject command to use a custom project template. Django will also accept URLs (http, https, ftp) to compressed archives with the app template files, downloading and extracting them on the fly. For more informations see: https://docs.djangoproject.com/en/dev/ref/django-admin/#startproject-projectname-destination

  • python_path | string

    Set additionnals, colon separated, PYTHONPATH to the project.

  • repos_branch | string

    The repo branch to pull out from. If empty, it will pull out the default branch or trunk (such as origin/master with git). Note that this setting only applies to git. This option is not supported for hg. For svn and bzr, specify the branch name as part of the URL.

  • repos_password | string

    The vcs password. Note: *Subversion only* settings. For other vcs use the repos_url for auth.

  • repos_url | string

    The vcs url to checkout.

  • repos_username | string

    The vcs user name. Note: *Subversion only* settings. For other vcs use the repos_url for auth.

  • requirements_apt_files | string

    Comma separated relative paths to requirement files. Note that the charm won't manually upgrade packages defined in this file. Leave the variable to an empty string if you don't want the feature.

  • requirements_pip_files | string

    Comma separated relative paths or urls to a requirement files. Note that the charm won't manually upgrade packages defined in this file. Leave the variable to an empty string if you don't want the feature.

  • settings_amqp_name | string

    Default: 20-amqp.py

    The place where the amqp configuration will be appended or written.

  • settings_database_name | string

    Default: 20-engine-%(engine_name)s.py

    The place where the database configuration will be appended or written. Set the variable to an empty string if you don't want the feature.

  • settings_dir_name | string

    Default: juju_settings

    The name of the directory where generated settings will be written. Set the variable to an empty string if you don't want the feature.

  • settings_injection_path | string

    Default: settings.py

    The place where the code injection path will be append. This is relative to the settings_dir_name path define earlier.

  • settings_secret_key_name | string

    Default: 10-secret.py

    The place where the secret key configuration will be appended or written. Set the variable to an empty string if you don't want the feature.

  • site_secret_key | string

    The web site secret key. Leave empty will generate one. NOTE: You **NEED** to set this in a multi-units architecture or you will have some trouble.

  • unit-config | string

    base64 encoded string to hold configuration information for the unit. The contents will be written to a file named <install_root>/<unit>/unit_config where <unit> is the location the branch is extracted to.

  • urls_dir_name | string

    Default: juju_urls

    The name of the directory where generated url will be written. Set the variable to an empty string if you don't want the feature.

  • urls_injection_path | string

    Default: urls.py

    The place where the code injection path will be append. This is relative to the urls_dir_name path define earlier.

  • vcs | string

    The vcs software to use. Only hg, git, bzr, and svn are currently supported.

  • wsgi_access_logfile | string

    The Access log file to write to.

  • wsgi_access_logformat | string

    The Access log format. Don't forget to escape all quotes and round brackets.

  • wsgi_backlog | int

    Default: 2048

    The maximum number of pending connections.

  • wsgi_extra | string

    Space separated extra settings. For example: --debug

  • wsgi_group | string

    Default: www-data

    Switch worker process to run as this group. A valid group id (as an int) or the name.

  • wsgi_keep_alive | int

    Default: 2

    Keep alive time in seconds.

  • wsgi_log_file | string

    The log file to write to. If empty the logs would be handle by upstart.

  • wsgi_log_level | string

    Default: info

    The granularity of Error log outputs.

  • wsgi_max_requests | int

    The maximum number of requests a worker will process before restarting.

  • wsgi_timeout | int

    Default: 30

    Timeout of a request in seconds.

  • wsgi_timestamp | string

    The variable to modify to trigger reloads.

  • wsgi_umask | string

    Default: 0002

    A bit mask for the file mode on files written.

  • wsgi_user | string

    Default: www-data

    Switch worker processes to run as this user. User id (as an int) or the name.

  • wsgi_worker_class | string

    Socket protocol. Can be: http (default), uwsgi, fastcgi or workers type. Can be: sync (default), eventlet, gevent, tornado

  • wsgi_worker_connections | int

    Default: 128

    The maximum number of simultaneous clients.

  • wsgi_workers | int

    The number of worker process for handling requests. 0 for count(cpu) + 1

  • wsgi_wsgi_file | string

    Default: wsgi

    The name of the WSGI application.