Module: PoiseApplicationPython::Resources::Django

Defined in:
lib/poise_application_python/resources/django.rb

Overview

An application_django resource to configure Django applications.

Examples:

application '/srv/myapp' do
  git '...'
  pip_requirements
  django do
    database do
      host node['db_host']
    end
  end
  gunicorn do
    port 8080
  end
end

Since:

  • 4.0.0

  • 4.0.0

Defined Under Namespace

Classes: Provider, Resource

Constant Summary collapse

ENGINE_ALIASES =

Aliases for Django database engine names. Based on https://github.com/kennethreitz/dj-database-url/blob/master/dj_database_url.py Copyright 2014, Kenneth Reitz.

Since:

  • 4.0.0

{
  'postgres' => 'django.db.backends.postgresql_psycopg2',
  'postgresql' => 'django.db.backends.postgresql_psycopg2',
  'pgsql' => 'django.db.backends.postgresql_psycopg2',
  'postgis' => 'django.contrib.gis.db.backends.postgis',
  'mysql2' => 'django.db.backends.mysql',
  'mysqlgis' => 'django.contrib.gis.db.backends.mysql',
  'spatialite' => 'django.contrib.gis.db.backends.spatialite',
  'sqlite' => 'django.db.backends.sqlite3',
}