
    Vh                     j    d dl mZmZmZ eZdZdZdZd dl	m
Z
  G d de
      Zd Zed	k(  r e        y
y
)    )absolute_importdivisionprint_functiona  
module: django_createcachetable
author:
  - Alexei Znamensky (@russoz)
short_description: Wrapper for C(django-admin createcachetable)
version_added: 9.1.0
description:
  - This module is a wrapper for the execution of C(django-admin createcachetable).
extends_documentation_fragment:
  - community.general.attributes
  - community.general.django
  - community.general.django.database
attributes:
  check_mode:
    support: full
  diff_mode:
    support: none
aw  
- name: Create cache table in the default database
  community.general.django_createcachetable:
    settings: myproject.settings

- name: Create cache table in the other database
  community.general.django_createcachetable:
    database: myotherdb
    settings: fancysite.settings
    pythonpath: /home/joedoe/project/fancysite
    venv: /home/joedoe/project/fancysite/venv
z
run_info:
  description: Command-line execution information.
  type: dict
  returned: success and O(verbosity) >= 3
version:
  description: Version of Django.
  type: str
  returned: always
  sample: 5.1.2
  version_added: 10.0.0
)DjangoModuleHelperc                   2    e Zd Z ed      ZdZdZg dZdZy)DjangoCreateCacheTableT)supports_check_modecreatecachetableznoinput database dry_run)noinputdatabasedry_runr   N)	__name__
__module____qualname__dictmoduledjango_admin_cmddjango_admin_arg_order_django_args_check_mode_arg     }/home/dcms/DCMS/lib/python3.12/site-packages/ansible_collections/community/general/plugins/modules/django_createcachetable.pyr   r   :   s'     F *75LOr   r   c                  ,    t         j                          y )N)r   executer   r   r   mainr   D   s    ""$r   __main__N)
__future__r   r   r   type__metaclass__DOCUMENTATIONEXAMPLESRETURNAansible_collections.community.general.plugins.module_utils.djangor   r   r   r   r   r   r   <module>r%      sT    A @&
 a /  % zF r   